File: tsc-fix.patch

package info (click to toggle)
node-ast-types 0.15.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,504 kB
  • sloc: javascript: 7,563; sh: 20; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 464 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: tsc ≥ 4.1 workaround
Author: Xavier Guimard <yadd@debian.org>
Forwarded: no
Last-Update: 2021-01-18

--- node-ast-types.orig/test/ecmascript.ts
+++ node-ast-types/test/ecmascript.ts
@@ -232,6 +232,7 @@
     assert.strictEqual(n.Expression.check(decl), false);
 
     // This makes decl cease to conform to n.VariableDeclaration.
+    // @ts-ignore
     decl.declarations.push(b.literal("bar") as $InvalidType);
 
     assert.ok(n.Node.check(decl));