diff --git a/sphinx_js/typedoc.py b/sphinx_js/typedoc.py index 7932a227..f52ff5a7 100644 --- a/sphinx_js/typedoc.py +++ b/sphinx_js/typedoc.py @@ -946,8 +946,16 @@ def _render_name_root(self, converter: Converter) -> str: return self.operator + " " + self.target.render_name(converter) +class IntrinsicType(TypeBase): + type: Literal["intrinsic"] + name: str + + def _render_name_root(self, converter: Converter) -> str: + return self.name + + class ReferenceType(TypeBase): - type: Literal["reference", "intrinsic"] + type: Literal["reference"] name: str id: int | None target: Any @@ -1022,6 +1030,7 @@ def _render_name_root(self, converter: Converter) -> str: | LiteralType | OtherType | OperatorType + | IntrinsicType | ReferenceType | ReflectionType | TupleType