mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
TypeScript: support unknown static type
This commit is contained in:
@@ -2188,6 +2188,11 @@ class TupleType extends ArrayType, @tupletype {
|
||||
*/
|
||||
class AnyType extends Type, @anytype {}
|
||||
|
||||
/**
|
||||
* The predefined `unknown` type.
|
||||
*/
|
||||
class UnknownType extends Type, @unknowntype {}
|
||||
|
||||
/**
|
||||
* The predefined `string` type.
|
||||
*/
|
||||
|
||||
@@ -610,6 +610,7 @@ case @type.kind of
|
||||
| 20 = @thistype
|
||||
| 21 = @numberliteraltype
|
||||
| 22 = @stringliteraltype
|
||||
| 23 = @unknowntype
|
||||
;
|
||||
|
||||
@booleanliteraltype = @truetype | @falsetype;
|
||||
|
||||
Reference in New Issue
Block a user