fix(types): remove explicit return type annotation requirement for this inference in computed options (#4221)

This commit is contained in:
Amour1688
2021-08-02 21:18:35 +08:00
committed by GitHub
parent 2f1f616650
commit d3d5ad204d
2 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ export interface WritableComputedRef<T> extends Ref<T> {
readonly effect: ReactiveEffect<T>
}
export type ComputedGetter<T> = (ctx?: any) => T
export type ComputedGetter<T> = (...args: any[]) => T
export type ComputedSetter<T> = (v: T) => void
export interface WritableComputedOptions<T> {