summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_exts/typescriptdomain.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/_exts/typescriptdomain.py b/_exts/typescriptdomain.py
index 44e30f7b..ce21b3b0 100644
--- a/_exts/typescriptdomain.py
+++ b/_exts/typescriptdomain.py
@@ -388,7 +388,9 @@ class LinkingHtmlFormatter(HtmlFormatter):
if tok_getprop(tok, "is_identifier"):
if xref.startswith('"'):
return value
- if xref in ("number", "object", "string", "boolean", "any", "true", "false", "null"):
+ if re.match("^[0-9]+$", xref) is not None:
+ return value
+ if xref in ("number", "object", "string", "boolean", "any", "true", "false", "null", "undefined", "Array"):
return value
if xref is None: