Skip to content

Commit

Permalink
test(types): update TS version and fix types test (vuejs#7597)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane authored and yyx990803 committed Feb 3, 2018
1 parent 8053eb1 commit 2d168f1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"selenium-server": "^2.53.1",
"serialize-javascript": "^1.3.0",
"shelljs": "^0.7.8",
"typescript": "^2.6.1",
"typescript": "^2.7.1",
"uglify-js": "^3.0.15",
"webpack": "^3.10.0",
"weex-js-runtime": "^0.23.5",
Expand Down
4 changes: 2 additions & 2 deletions types/test/plugin-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import Vue from "../index";
import { PluginFunction, PluginObject } from "../index";

class Option {
prefix: string;
suffix: string;
prefix: string = "";
suffix: string = "";
}

const plugin: PluginObject<Option> = {
Expand Down
4 changes: 2 additions & 2 deletions types/test/vue-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vue, { VNode } from "../index";
import { ComponentOptions } from "../options";

class Test extends Vue {
a: number;
a: number = 0;

testProperties() {
this.$data;
Expand All @@ -19,7 +19,7 @@ class Test extends Vue {
}

// test property reification
$refs: {
$refs!: {
vue: Vue,
element: HTMLInputElement,
vues: Vue[],
Expand Down

0 comments on commit 2d168f1

Please sign in to comment.