diff --git a/types/index.d.ts b/types/index.d.ts index 3da51d5..2adcc41 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -14,14 +14,17 @@ export default class AsyncComputed { export type AsyncComputedGetter = () => Promise; -export interface IAsyncComputedValue { +export interface IAsyncComputedValueBase { default?: T | (() => T); - get: AsyncComputedGetter; watch?: string[] | (() => void); shouldUpdate?: () => boolean; lazy?: boolean; } +export interface IAsyncComputedValue extends IAsyncComputedValueBase { + get: AsyncComputedGetter; +} + export interface AsyncComputedObject { [K: string]: AsyncComputedGetter | IAsyncComputedValue; }