TypeScript: support syntax for unknown types

This commit is contained in:
Asger F
2018-08-20 14:42:50 +01:00
parent 4a9eb0fd3f
commit 9a9bbac99e
4 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1 @@
| tst.ts:137:18:137:24 | unknown |

View File

@@ -0,0 +1,5 @@
import javascript
from TypeExpr type
where type.isUnknownKeyword()
select type

View File

@@ -134,3 +134,4 @@ let tupleWithOptionalElement: [number, string, number?];
let emptyTuple: [];
let tupleWithRestElement: [number, ...string[]];
let tupleWithOptionalAndRestElements: [number, string?, ...number[]];
let unknownType: unknown;