From e243ecd631fc06d846910154303eb2b83aa43e01 Mon Sep 17 00:00:00 2001 From: Luis Felger Date: Sun, 19 Jan 2020 16:57:44 +0100 Subject: [PATCH] Separated IAsyncComputedValueBase from IAsyncComputedValue --- types/index.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }