diff options
author | yipstanley <stanley_yip@brown.edu> | 2019-07-16 22:27:25 -0400 |
---|---|---|
committer | yipstanley <stanley_yip@brown.edu> | 2019-07-16 22:27:25 -0400 |
commit | 9794f4c8aa4f2dfd8bee40e342fb1b26656a3caa (patch) | |
tree | 5fffaa5a21b35ac21c12eae1a3243ce81adc49ee /src/new_fields/Schema.ts | |
parent | fd003a789941d2008d895a5e047cdd224540156a (diff) | |
parent | f0f020501c782a4989fc1dc47031acb40335532c (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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 2355304d5..b1a449e08 100644 --- a/src/new_fields/Schema.ts +++ b/src/new_fields/Schema.ts @@ -104,7 +104,7 @@ export function makeStrictInterface<T extends Interface>(schema: T): (doc: Doc) } export function createSchema<T extends Interface>(schema: T): T & { proto: ToConstructor<Doc> } { - schema.proto = Doc; + (schema as any).proto = Doc; return schema as any; } |