aboutsummaryrefslogtreecommitdiff
path: root/src/new_fields/Proxy.ts
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-07-23 22:11:09 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-07-23 22:11:09 -0400
commit7c2454f14eeb40c0dee6a5fefed1c954012181bb (patch)
treef69ab897f0af693e9c10a9adde32f0108e916006 /src/new_fields/Proxy.ts
parentcb95d4b43238538f59babcaa0b0d9dabb9b393b7 (diff)
parent7f9e4de6e4b5d06535c5dfc93afa707a355a353d (diff)
merged with master
Diffstat (limited to 'src/new_fields/Proxy.ts')
-rw-r--r--src/new_fields/Proxy.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/new_fields/Proxy.ts b/src/new_fields/Proxy.ts
index 38d874a68..14f08814e 100644
--- a/src/new_fields/Proxy.ts
+++ b/src/new_fields/Proxy.ts
@@ -48,7 +48,7 @@ export class ProxyField<T extends RefField> extends ObjectField {
private failed = false;
private promise?: Promise<any>;
- value(): T | undefined | FieldWaiting {
+ value(): T | undefined | FieldWaiting<T> {
if (this.cache) {
return this.cache;
}
@@ -63,6 +63,6 @@ export class ProxyField<T extends RefField> extends ObjectField {
return field;
}));
}
- return this.promise;
+ return this.promise as any;
}
}