From 25a19e2f21720d27df7f6841fc919f44b66e38a8 Mon Sep 17 00:00:00 2001 From: Ruzie Date: Tue, 7 Jun 2022 19:07:38 -0400 Subject: [PATCH] fix: add "unknown" type (#2445) --- runtime/syntax/typescript.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/syntax/typescript.yaml b/runtime/syntax/typescript.yaml index 7f898ab3..d3c84f39 100644 --- a/runtime/syntax/typescript.yaml +++ b/runtime/syntax/typescript.yaml @@ -16,7 +16,7 @@ rules: - constant: "\\b(false|true|null|undefined|NaN)\\b" - type: "\\b(Array|Boolean|Date|Enumerator|Error|Function|Math)\\b" - type: "\\b(Number|Object|RegExp|String|Symbol)\\b" - - type: "\\b(any|boolean|never|number|string|symbol)\\b" + - type: "\\b(any|unknown|boolean|never|number|string|symbol)\\b" - statement: "[-+/*=<>!~%?:&|]" - constant: "/[^*]([^/]|(\\\\/))*[^\\\\]/[gim]*" - constant: "\\\\[0-7][0-7]?[0-7]?|\\\\x[0-9a-fA-F]+|\\\\[bfnrt'\"\\?\\\\]" -- 2.44.0