]> git.lizzy.rs Git - micro.git/commitdiff
fix: add "unknown" type (#2445)
authorRuzie <luhamailbox@gmail.com>
Tue, 7 Jun 2022 23:07:38 +0000 (19:07 -0400)
committerGitHub <noreply@github.com>
Tue, 7 Jun 2022 23:07:38 +0000 (00:07 +0100)
runtime/syntax/typescript.yaml

index 7f898ab3d43ed6014a69305f737159679fafb4f1..d3c84f39eb1f8d3fbd864a5ce25a8293150d294d 100644 (file)
@@ -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'\"\\?\\\\]"