Skip to content

Commit a9b05fe

Browse files
committed
update typescript to latest version
1 parent 87307f4 commit a9b05fe

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.wotanrc.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ extends:
33
- ./rules
44
rules:
55
tcc/no-unused: error
6+
no-useless-assertion: off
7+
no-useless-predicate: off

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"nyc": "^12.0.1",
4848
"rimraf": "^2.6.2",
4949
"tslint": "^5.8.0",
50-
"typescript": "2.9.1"
50+
"typescript": "3.1.3"
5151
},
5252
"peerDependencies": {
5353
"tslint": "^5.0.0",

rules/noUnnecessaryTypeAnnotationRule.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,15 +313,15 @@ function removeSignatureReturn(str: string): string {
313313
return sourceFile.text.substring(7, signature.parameters.end + 1);
314314
}
315315

316-
function getSignaturesOfType(type: ts.Type): ts.Signature[] {
316+
function getSignaturesOfType(type: ts.Type): ReadonlyArray<ts.Signature> {
317317
if (isUnionType(type)) {
318318
const signatures = [];
319319
for (const t of type.types)
320320
signatures.push(...getSignaturesOfType(t));
321321
return signatures;
322322
}
323323
if (isIntersectionType(type)) {
324-
let signatures: ts.Signature[] | undefined;
324+
let signatures;
325325
for (const t of type.types) {
326326
const sig = getSignaturesOfType(t);
327327
if (sig.length !== 0) {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2628,10 +2628,10 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0:
26282628
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64"
26292629
integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=
26302630

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

26362636
uglify-js@^2.6:
26372637
version "2.8.29"

0 commit comments

Comments
 (0)