fix(computed): support arrow function usage for computed option

fix #733
This commit is contained in:
Evan You
2020-02-17 23:22:25 -05:00
parent 9571ede84b
commit 2fb7a63943
3 changed files with 4 additions and 6 deletions

View File

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