We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4301e7e + e243ecd commit 1185aa6Copy full SHA for 1185aa6
types/index.d.ts
@@ -14,14 +14,17 @@ export default class AsyncComputed {
14
15
export type AsyncComputedGetter<T> = () => Promise<T>;
16
17
-export interface IAsyncComputedValue<T> {
+export interface IAsyncComputedValueBase<T> {
18
default?: T | (() => T);
19
- get: AsyncComputedGetter<T>;
20
watch?: string[] | (() => void);
21
shouldUpdate?: () => boolean;
22
lazy?: boolean;
23
}
24
+export interface IAsyncComputedValue<T> extends IAsyncComputedValueBase<T> {
25
+ get: AsyncComputedGetter<T>;
26
+}
27
+
28
export interface AsyncComputedObject {
29
[K: string]: AsyncComputedGetter<any> | IAsyncComputedValue<any>;
30
0 commit comments