diff --git a/templates/file.ejs b/templates/file.ejs index f79685f..94eb546 100644 --- a/templates/file.ejs +++ b/templates/file.ejs @@ -32,7 +32,7 @@ export interface RecordCtor> { (defaultValues: T | R, name?: string): RecordClass } -function fromJSDefault(json) { +function fromJSDefault(json: any) { if (Array.isArray(json)) { return (Immutable.Seq as any).Indexed(json).map(fromJSDefault).toList(); } @@ -42,7 +42,7 @@ function fromJSDefault(json) { return json; } -function isPlainObj(value) { +function isPlainObj(value: any) { return value && (value.constructor === Object || value.constructor === undefined); }