Skip to content

Commit 2d168f1

Browse files
g-planeyyx990803
authored andcommitted
test(types): update TS version and fix types test (#7597)
1 parent 8053eb1 commit 2d168f1

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Diff for: package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1-1
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",

Diff for: types/test/plugin-test.ts

+2-2
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> = {

Diff for: types/test/vue-test.ts

+2-2
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)