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

@@ -1,6 +1,6 @@
{
"name": "@vue/reactivity",
"version": "3.0.0-alpha.11",
"version": "3.0.0-alpha.12",
"description": "@vue/reactivity",
"main": "index.js",
"module": "dist/reactivity.esm-bundler.js",
@@ -34,6 +34,6 @@
},
"homepage": "https://github.com/vuejs/vue-next/tree/master/packages/reactivity#readme",
"dependencies": {
"@vue/shared": "3.0.0-alpha.11"
"@vue/shared": "3.0.0-alpha.12"
}
}

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]