Skip to content

Commit 84c395b

Browse files
committed
Update to typescript 6
1 parent 4e2fd89 commit 84c395b

File tree

5 files changed

+12
-9
lines changed

5 files changed

+12
-9
lines changed

lib/RdfXmlParser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class RdfXmlParser extends Transform implements RDF.Sink<EventEmitter, RD
117117
try {
118118
this.saxParser.write(chunk);
119119
} catch (e) {
120-
return callback(e);
120+
return callback(<Error>e);
121121
}
122122
callback();
123123
}
@@ -192,7 +192,7 @@ export class RdfXmlParser extends Transform implements RDF.Sink<EventEmitter, RD
192192

193193
protected attachSaxListeners() {
194194
this.saxParser.on('error', (error) => this.emit('error', error));
195-
this.saxParser.on('opentag', this.onTag.bind(this));
195+
this.saxParser.on('opentag', <any> this.onTag.bind(this));
196196
this.saxParser.on('text', this.onText.bind(this));
197197
this.saxParser.on('cdata', this.onText.bind(this));
198198
this.saxParser.on('closetag', this.onCloseTag.bind(this));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"ts-loader": "^9.3.1",
5656
"tslint": "^6.0.0",
5757
"tslint-eslint-rules": "^5.3.1",
58-
"typescript": "^5.7.2",
58+
"typescript": "^6.0.0",
5959
"webpack": "^5.73.0",
6060
"webpack-cli": "^7.0.0"
6161
},

test/tsconfig.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"compilerOptions": {
33
"module": "commonjs",
4+
"types": ["node", "jest"],
45
"noImplicitAny": false,
56
"lib": [
67
"es6"
78
],
8-
"target": "es6"
9+
"target": "es6",
10+
"strictNullChecks": false
911
}
1012
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"sourceMap": true,
1515
"inlineSources": true,
1616
"declaration": true,
17-
"importHelpers": false
17+
"importHelpers": false,
18+
"strictNullChecks": false
1819
},
1920
"include": [
2021
"index.ts",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4356,10 +4356,10 @@ typedarray@^0.0.6:
43564356
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
43574357
integrity sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==
43584358

4359-
typescript@^5.7.2:
4360-
version "5.7.2"
4361-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6"
4362-
integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg==
4359+
typescript@^6.0.0:
4360+
version "6.0.2"
4361+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-6.0.2.tgz#0b1bfb15f68c64b97032f3d78abbf98bdbba501f"
4362+
integrity sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==
43634363

43644364
uglify-js@^3.1.4:
43654365
version "3.19.3"

0 commit comments

Comments
 (0)