diff --git a/sphinx_js/typedoc.py b/sphinx_js/typedoc.py index 68fb1f40..75771093 100644 --- a/sphinx_js/typedoc.py +++ b/sphinx_js/typedoc.py @@ -1058,8 +1058,18 @@ def _render_name_root(self, converter: Converter) -> Iterator[str | ir.TypeXRef] yield "]" -class OtherType(TypeBase): - type: Literal["indexedAccess"] +class UnimplementedType(TypeBase): + type: Literal[ + "indexedAccess", + "inferred", + "conditional", + "mapped", + "namedTupleMember", + "optional", + "query", + "rest", + "templateLiteral", + ] def _render_name_root(self, converter: Converter) -> Iterator[str | ir.TypeXRef]: yield "" @@ -1091,7 +1101,6 @@ def _render_name_root(self, converter: Converter) -> Iterator[str | ir.TypeXRef] AndOrType | ArrayType | LiteralType - | OtherType | OperatorType | IntrinsicType | ReferenceType @@ -1099,6 +1108,7 @@ def _render_name_root(self, converter: Converter) -> Iterator[str | ir.TypeXRef] | TupleType | PredicateType | UnknownType + | UnimplementedType ) TypeD = Annotated[Type, Field(discriminator="type")]