fix(types): remove explicit return type annotation requirement for this inference in computed options (#4221)
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user