diff --git a/package-lock.json b/package-lock.json index 6389efebcce..8f98c755ed7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9580,9 +9580,9 @@ "dev": true }, "typescript": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.6.2.tgz", - "integrity": "sha1-PFtv1/beCRQmkCfwPAlGdY92c6Q=", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.1.tgz", + "integrity": "sha512-bqB1yS6o9TNA9ZC/MJxM0FZzPnZdtHj0xWK/IZ5khzVqdpGul/R/EIiHRgFXlwTD7PSIaYVnGKq1QgMCu2mnqw==", "dev": true }, "uglify-js": { diff --git a/package.json b/package.json index 41f1bcc0d0a..7a9a81fea8b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/test/plugin-test.ts b/types/test/plugin-test.ts index 15055614e80..ebb352e8239 100644 --- a/types/test/plugin-test.ts +++ b/types/test/plugin-test.ts @@ -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