6 lines
181 B
Cheetah
6 lines
181 B
Cheetah
if (typeof <%= get %> !== 'object' && <%= get %>) {
|
|
<%= set %> = '' + <%= get %>;
|
|
} else {
|
|
throw new TypeError('Invalid <%= name %>: ' + <%= get %> + ' should be a string.');
|
|
}
|