Browse Source

test(types): update TS version and fix types test (#7597)

dev
Pig Fang 7 years ago
committed by Evan You
parent
commit
2d168f1ba1
  1. 6
      package-lock.json
  2. 2
      package.json
  3. 4
      types/test/plugin-test.ts
  4. 4
      types/test/vue-test.ts

6
package-lock.json

@ -9580,9 +9580,9 @@
"dev": true "dev": true
}, },
"typescript": { "typescript": {
"version": "2.6.2", "version": "2.7.1",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.1.tgz",
"integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", "integrity": "sha512-bqB1yS6o9TNA9ZC/MJxM0FZzPnZdtHj0xWK/IZ5khzVqdpGul/R/EIiHRgFXlwTD7PSIaYVnGKq1QgMCu2mnqw==",
"dev": true "dev": true
}, },
"uglify-js": { "uglify-js": {

2
package.json

@ -134,7 +134,7 @@
"selenium-server": "^2.53.1", "selenium-server": "^2.53.1",
"serialize-javascript": "^1.3.0", "serialize-javascript": "^1.3.0",
"shelljs": "^0.7.8", "shelljs": "^0.7.8",
"typescript": "^2.6.1", "typescript": "^2.7.1",
"uglify-js": "^3.0.15", "uglify-js": "^3.0.15",
"webpack": "^3.10.0", "webpack": "^3.10.0",
"weex-js-runtime": "^0.23.5", "weex-js-runtime": "^0.23.5",

4
types/test/plugin-test.ts

@ -2,8 +2,8 @@ import Vue from "../index";
import { PluginFunction, PluginObject } from "../index"; import { PluginFunction, PluginObject } from "../index";
class Option { class Option {
prefix: string; prefix: string = "";
suffix: string; suffix: string = "";
} }
const plugin: PluginObject<Option> = { const plugin: PluginObject<Option> = {

4
types/test/vue-test.ts

@ -2,7 +2,7 @@ import Vue, { VNode } from "../index";
import { ComponentOptions } from "../options"; import { ComponentOptions } from "../options";
class Test extends Vue { class Test extends Vue {
a: number; a: number = 0;
testProperties() { testProperties() {
this.$data; this.$data;
@ -19,7 +19,7 @@ class Test extends Vue {
} }
// test property reification // test property reification
$refs: { $refs!: {
vue: Vue, vue: Vue,
element: HTMLInputElement, element: HTMLInputElement,
vues: Vue[], vues: Vue[],

Loading…
Cancel
Save