8000 fix(types): add `Date` to `BaseTypes` (#957) · vuejs/composition-api@c3f4e91 · GitHub
[go: up one dir, main page]

Skip to content

Commit c3f4e91

Browse files
authored
fix(types): add Date to BaseTypes (#957)
1 parent 961a52d commit c3f4e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactivity/ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type WeakCollections = WeakMap<any, any> | WeakSet<any>
3434
// corner case when use narrows type
3535
// Ex. type RelativePath = string & { __brand: unknown }
3636
// RelativePath extends object -> true
37-
type BaseTypes = string | number | boolean | Node | Window
37+
type BaseTypes = string | number | boolean | Node | Window | Date
3838

3939
export type ShallowUnwrapRef<T> = {
4040
[K in keyof T]: T[K] extends Ref<infer V> ? V : T[K]

0 commit comments

Comments
 (0)
0