Skip to content

Commit

Permalink
Add rest of unimplemented types to UnimplementedType
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Sep 26, 2023
1 parent 560f64f commit 3ff9984
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions sphinx_js/typedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<TODO: not implemented>"
Expand Down Expand Up @@ -1091,14 +1101,14 @@ def _render_name_root(self, converter: Converter) -> Iterator[str | ir.TypeXRef]
AndOrType
| ArrayType
| LiteralType
| OtherType
| OperatorType
| IntrinsicType
| ReferenceType
| ReflectionType
| TupleType
| PredicateType
| UnknownType
| UnimplementedType
)

TypeD = Annotated[Type, Field(discriminator="type")]
Expand Down

0 comments on commit 3ff9984

Please sign in to comment.