diff options
| author | kimdahey <claire_kim1@brown.edu> | 2019-12-03 16:32:13 -0500 |
|---|---|---|
| committer | kimdahey <claire_kim1@brown.edu> | 2019-12-03 16:32:13 -0500 |
| commit | 70583fa47bd9920d1823d381708c81283534d6ce (patch) | |
| tree | 5c81976813436852403ea352797efe1d518dbb1a /src/new_fields/Schema.ts | |
| parent | 56b83d89f37a5523ab319977e3385f539ecaf996 (diff) | |
| parent | 213962406327cc2f7267064f3016fabf0fd16872 (diff) | |
merged w master
Diffstat (limited to 'src/new_fields/Schema.ts')
| -rw-r--r-- | src/new_fields/Schema.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Schema.ts b/src/new_fields/Schema.ts index b1a449e08..3f0ff4284 100644 --- a/src/new_fields/Schema.ts +++ b/src/new_fields/Schema.ts @@ -23,7 +23,7 @@ export type makeInterface<T extends Interface[]> = AllToInterface<T> & Doc & { p // export function makeInterface<T extends Interface[], U extends Doc>(schemas: T): (doc: U) => All<T, U>; // export function makeInterface<T extends Interface, U extends Doc>(schema: T): (doc: U) => makeInterface<T, U>; export function makeInterface<T extends Interface[]>(...schemas: T): InterfaceFunc<T> { - let schema: Interface = {}; + const schema: Interface = {}; for (const s of schemas) { for (const key in s) { schema[key] = s[key]; |
