8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Date
BaseTypes
1 parent 961a52d commit c3f4e91Copy full SHA for c3f4e91
src/reactivity/ref.ts
@@ -34,7 +34,7 @@ type WeakCollections = WeakMap<any, any> | WeakSet<any>
34
// corner case when use narrows type
35
// Ex. type RelativePath = string & { __brand: unknown }
36
// RelativePath extends object -> true
37
-type BaseTypes = string | number | boolean | Node | Window
+type BaseTypes = string | number | boolean | Node | Window | Date
38
39
export type ShallowUnwrapRef<T> = {
40
[K in keyof T]: T[K] extends Ref<infer V> ? V : T[K]
0 commit comments