File: typescript-5.0-compatibility.patch

package info (click to toggle)
ts-node 10.9.2%2B~cs64.13.20-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,388 kB
  • sloc: javascript: 15,071; sh: 83; makefile: 15; xml: 9
file content (20 lines) | stat: -rw-r--r-- 703 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: typescript 5.0 compatibility
 https://devblogs.microsoft.com/typescript/announcing-typescript-5-0/#--verbatimmodulesyntax
 "ignoreDeprecations": "5.0" will temporarily suppress error about using
 'importsNotUsedAsValues', but this workaround will work only until typescript
 5.4 and from 5.5 it'll be an error.
Author: Ananthu C V <weepingclown@debian.org>
Last-Update: 2024-12-15
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -23,2 +23,3 @@
     "allowJs": true,
+    "ignoreDeprecations": "5.0",
 
--- a/src/ts-internals.ts
+++ b/src/ts-internals.ts
@@ -26,3 +26,3 @@
     basePath: string,
-    errors: _ts.Push<_ts.Diagnostic>,
+    errors: Array<_ts.Diagnostic>,
     createDiagnostic: (