fix(computed): support arrow function usage for computed option
fix #733
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user