branch: elpa/typescript-mode
commit 9796425fdb7d95463950e1277e2f3f9805ba0947
Author: Jostein Kjønigsen <[email protected]>
Commit: Jostein Kjønigsen <[email protected]>

    Add support for new type "unknown".
    
    This is now a supported typename:
    
https://blogs.msdn.microsoft.com/typescript/2018/07/30/announcing-typescript-3-0/#unknown-is-a-reserved-type-name
---
 typescript-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index a3d92dbfac..c5a1bc28da 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -270,13 +270,13 @@ Match group 1 is MUMBLE.")
      "interface" "keyof" "let" "module" "namespace" "new" "null" "number" 
"object" "of"
      "private" "protected" "public" "readonly" "return" "set" "static" "string"
      "super" "switch"  "this" "throw" "true"
-     "try" "type" "typeof" "var" "void"
+     "try" "type" "typeof" "unknown" "var" "void"
      "while"))                  ; yield is handled separately
   "Regexp matching any typescript keyword.")
 
 (defconst typescript--basic-type-re
   (typescript--regexp-opt-symbol
-   '("bool" "boolean" "string" "number" "any" "void"))
+   '("bool" "boolean" "string" "number" "any" "unknown" "void"))
   "Regular expression matching any predefined type in typescript.")
 
 (defconst typescript--constant-re

Reply via email to