Skip to content

Commit

Permalink
update typescript to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff committed Oct 22, 2018
1 parent 87307f4 commit a9b05fe
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .wotanrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ extends:
- ./rules
rules:
tcc/no-unused: error
no-useless-assertion: off
no-useless-predicate: off
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"nyc": "^12.0.1",
"rimraf": "^2.6.2",
"tslint": "^5.8.0",
"typescript": "2.9.1"
"typescript": "3.1.3"
},
"peerDependencies": {
"tslint": "^5.0.0",
Expand Down
4 changes: 2 additions & 2 deletions rules/noUnnecessaryTypeAnnotationRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ function removeSignatureReturn(str: string): string {
return sourceFile.text.substring(7, signature.parameters.end + 1);
}

function getSignaturesOfType(type: ts.Type): ts.Signature[] {
function getSignaturesOfType(type: ts.Type): ReadonlyArray<ts.Signature> {
if (isUnionType(type)) {
const signatures = [];
for (const t of type.types)
signatures.push(...getSignaturesOfType(t));
return signatures;
}
if (isIntersectionType(type)) {
let signatures: ts.Signature[] | undefined;
let signatures;
for (const t of type.types) {
const sig = getSignaturesOfType(t);
if (sig.length !== 0) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2628,10 +2628,10 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=

typescript@2.9.1:
version "2.9.1"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-2.9.1.tgz#fdb19d2c67a15d11995fd15640e373e09ab09961"
integrity sha512-h6pM2f/GDchCFlldnriOhs1QHuwbnmj6/v7499eMHqPeW4V2G0elua2eIc2nu8v2NdHV0Gm+tzX83Hr6nUFjQA==
typescript@3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.3.tgz#01b70247a6d3c2467f70c45795ef5ea18ce191d5"
integrity sha512-+81MUSyX+BaSo+u2RbozuQk/UWx6hfG0a5gHu4ANEM4sU96XbuIyAB+rWBW1u70c6a5QuZfuYICn3s2UjuHUpA==

uglify-js@^2.6:
version "2.8.29"
Expand Down

0 comments on commit a9b05fe

Please sign in to comment.