wip: improve options typing

This commit is contained in:
Evan You
2019-09-05 16:09:30 -04:00
parent 369b9eb583
commit 9b90e673e8
6 changed files with 192 additions and 45 deletions

View File

@@ -7,7 +7,7 @@ export interface ComputedRef<T> {
readonly effect: ReactiveEffect
}
export interface ComputedOptions<T = any> {
export interface ComputedOptions<T> {
get: () => T
set: (v: T) => void
}