Skip to content

Commit 9d48161

Browse files
committed
fix: Support type_parameters field in various classes
Issue-mkdocstrings/typescript#17: mkdocstrings/typescript#17
1 parent 4d4d19f commit 9d48161

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/griffe_typedoc/dataclasses.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ class Class(Reflection):
410410
extended_by: list[Type] | None = None
411411
implemented_types: list[Type] | None = None
412412
index_signatures: list[IndexSignature] | None = None
413+
type_parameters: list[TypeParameter] | None = None
413414

414415
@property
415416
def kind(self) -> ReflectionKind:
@@ -470,7 +471,7 @@ def kind(self) -> ReflectionKind:
470471
class CallSignature(Reflection):
471472
type: Type
472473
parameters: list[Parameter] | None = None
473-
type_parameter: list[TypeParameter] | None = None
474+
type_parameters: list[TypeParameter] | None = None
474475
overwrites: Type | None = None
475476
implementation_of: Type | None = None
476477
inherited_from: Type | None = None
@@ -495,6 +496,7 @@ class ConstructorSignature(Reflection):
495496
parameters: list[Parameter] | None = None
496497
overwrites: Type | None = None
497498
inherited_from: Type | None = None
499+
type_parameters: list[TypeParameter] | None = None
498500

499501
@property
500502
def kind(self) -> ReflectionKind:

0 commit comments

Comments
 (0)