From 3ff9984473bf846aae4110d8c685f9c0f84ed76b Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 25 Sep 2023 18:32:57 -0700 Subject: [PATCH] Add rest of unimplemented types to UnimplementedType --- sphinx_js/typedoc.py | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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")]