Skip to content

Commit ab6d183

Browse files
g-planeaJean
authored andcommitted
test(types): update TS version and fix types test (vuejs#7597)
1 parent 7e2e5d2 commit ab6d183

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"selenium-server": "^2.53.1",
135135
"serialize-javascript": "^1.3.0",
136136
"shelljs": "^0.7.8",
137-
"typescript": "^2.6.1",
137+
"typescript": "^2.7.1",
138138
"uglify-js": "^3.0.15",
139139
"webpack": "^3.10.0",
140140
"weex-js-runtime": "^0.23.5",

types/test/plugin-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import Vue from "../index";
22
import { PluginFunction, PluginObject } from "../index";
33

44
class Option {
5-
prefix: string;
6-
suffix: string;
5+
prefix: string = "";
6+
suffix: string = "";
77
}
88

99
const plugin: PluginObject<Option> = {

types/test/vue-test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Vue, { VNode } from "../index";
22
import { ComponentOptions } from "../options";
33

44
class Test extends Vue {
5-
a: number;
5+
a: number = 0;
66

77
testProperties() {
88
this.$data;
@@ -19,7 +19,7 @@ class Test extends Vue {
1919
}
2020

2121
// test property reification
22-
$refs: {
22+
$refs!: {
2323
vue: Vue,
2424
element: HTMLInputElement,
2525
vues: Vue[],

0 commit comments

Comments
 (0)