Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Upgrade to TypeScript 2.2 #2234

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"rimraf": "^2.5.4",
"tslint": "latest",
"tslint-test-config-non-relative": "file:test/external/tslint-test-config-non-relative",
"typescript": "2.1.4"
"typescript": "2.2.1"
},
"license": "Apache-2.0",
"engines": {
Expand Down
10 changes: 5 additions & 5 deletions test/rules/no-floating-promises/promises/test.ts.lint
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
class Promise {
then(): Promise;
class Promise<T> {
then(): Promise<T>;
}

function returnsPromiseFunction() {
return new Promise();
return new Promise<void>();
}

const returnsPromiseVariable = () => new Promise();
const returnsPromiseVariable = () => new Promise<void>();

class ReturnsPromiseClass {
returnsPromiseMemberFunction() {
return new Promise();
return new Promise<void>();
}

returnsPromiseMemberVariable = () => new Promise();
Expand Down