Skip to content

Commit

Permalink
fix(types): add Date to BaseTypes (#957)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitorum committed Aug 10, 2022
1 parent 961a52d commit c3f4e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reactivity/ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type WeakCollections = WeakMap<any, any> | WeakSet<any>
// corner case when use narrows type
// Ex. type RelativePath = string & { __brand: unknown }
// RelativePath extends object -> true
type BaseTypes = string | number | boolean | Node | Window
type BaseTypes = string | number | boolean | Node | Window | Date

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

0 comments on commit c3f4e91

Please sign in to comment.