build: adjust types build script

This commit is contained in:
Evan You
2018-10-16 17:41:59 -04:00
parent aac7805b3a
commit 6e04850d71
11 changed files with 35 additions and 23 deletions

View File

@@ -4,7 +4,6 @@
"description": "vue",
"main": "index.js",
"module": "dist/vue.esm-bundler.js",
"typings": "dist/index.d.ts",
"unpkg": "dist/vue.global.js",
"sideEffects": false,
"buildOptions": {

View File

@@ -6,12 +6,13 @@ import {
createComponentClassFromOptions
} from '@vue/renderer-dom'
class Vue {
static h = h
static render = render
static nextTick = nextTick
// Note: typing for this is intentionally loose, as it will be using 2.x types.
class Vue {
static h: any = h
static render: any = render
static nextTick: any = nextTick
// Note: typing for this is intentionally loose, as it will be using 2.x types.
constructor(options: any) {
// convert it to a class
const Component = createComponentClassFromOptions(options || {})