]> git.lizzy.rs Git - micro.git/blobdiff - runtime/syntax/typescript.yaml
fix: add "unknown" type (#2445)
[micro.git] / 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'\"\\?\\\\]"