fix(types): UnwrapRef should bail on DOM element types (#952)

fix #951
This commit is contained in:
Thorsten Lünborg
2020-04-13 17:51:32 +02:00
committed by GitHub
parent 5968cff3a8
commit 33ccfc0a8b
2 changed files with 25 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ function toProxyRef<T extends object, K extends keyof T>(
// corner case when use narrows type
// Ex. type RelativePath = string & { __brand: unknown }
// RelativePath extends object -> true
type BaseTypes = string | number | boolean
type BaseTypes = string | number | boolean | Node | Window
// Recursively unwraps nested value bindings.
export type UnwrapRef<T> = {