Merge remote-tracking branch 'github/master' into changing_unwrap_ref

This commit is contained in:
pikax
2020-04-13 18:32:14 +01:00
54 changed files with 1175 additions and 2676 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
// Super simple tuple checker
type Tupple<T extends Array<any>> = T[0] extends T[1]