diff --git a/package-lock.json b/package-lock.json index 9139b78e8..b28b9fc51 100644 --- a/package-lock.json +++ b/package-lock.json @@ -38,9 +38,9 @@ } }, "@types/mocha": { - "version": "2.2.44", - "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-2.2.44.tgz", - "integrity": "sha512-k2tWTQU8G4+iSMvqKi0Q9IIsWAp/n8xzdZS4Q4YVIltApoMA00wFBFdlJnmoaK1/z7B0Cy0yPe6GgXteSmdUNw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-5.0.0.tgz", + "integrity": "sha512-ZS0vBV7Jn5Z/Q4T3VXauEKMDCV8nWOtJJg90OsDylkYJiQwcWtKuLzohWzrthBkerUF7DLMmJcwOPEP0i/AOXw==", "dev": true }, "@types/node": { @@ -1141,9 +1141,9 @@ "dev": true }, "typescript": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.2.tgz", - "integrity": "sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw==", + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.8.1.tgz", + "integrity": "sha512-Ao/f6d/4EPLq0YwzsQz8iXflezpTkQzqAyenTiw4kCUGr1uPiFLC3+fZ+gMZz6eeI/qdRUqvC+HxIJzUAzEFdg==", "dev": true }, "ua-parser-js": { diff --git a/package.json b/package.json index 102f1b8d4..4e055c8eb 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,7 @@ "semver": "^5.1.0", "tslint": "^5.0.0", "tslint-config-standard": "^7.0.0", - "typescript": "^2.7.2" + "typescript": "^2.8.1" }, "dependencies": { "arrify": "^1.0.0", diff --git a/tests/allow-js/with-jsx.jsx b/tests/allow-js/with-jsx.jsx index ca865ddd4..d182b4b5d 100644 --- a/tests/allow-js/with-jsx.jsx +++ b/tests/allow-js/with-jsx.jsx @@ -1,7 +1,11 @@ export class Foo2 { - render () { - return
+ + static sayHi () { + return 'hello world' } + + render () { + return + } + } - -Foo2.sayHi = () => 'hello world'