aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Schema.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-07-16 22:01:24 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-07-16 22:01:24 -0400
commit4b1db5899cb04f0892406be32a10bae49d6ba351 (patch)
tree120f994cfe09c01f8f8d7761e094cf95337498e7 /src/new_fields/Schema.ts
parent5bb670a3a93f53c65ae225cc8572f99e9f4c4b33 (diff)
Fixed errors
Diffstat (limited to 'src/new_fields/Schema.ts')
-rw-r--r--src/new_fields/Schema.ts2
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;
}