feat: 2.x options support

This commit is contained in:
Evan You
2019-09-03 22:25:38 -04:00
parent c833db9c97
commit a6616e4210
6 changed files with 243 additions and 14 deletions

View File

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