Skip to content

Commit 78bd842

Browse files
committed
fix: Support type on all reflections, support signatures on constructors
Issue-mkdocstrings/typescript#3: mkdocstrings/typescript#3 Issue-mkdocstrings/typescript#4: mkdocstrings/typescript#4
1 parent 89d46be commit 78bd842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/griffe_typedoc/dataclasses.py

+3
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ class Reflection:
247247
groups: list[Group] = field(default_factory=list)
248248
sources: list[Source] = field(default_factory=list)
249249
parent: Reflection | None = None
250+
type: Type | None = None
250251

251252
@property
252253
def kind(self) -> ReflectionKind:
@@ -417,6 +418,8 @@ def kind(self) -> ReflectionKind:
417418

418419
@dataclass(kw_only=True)
419420
class Constructor(Reflection):
421+
signatures: list[ConstructorSignature] | None = None
422+
420423
@property
421424
def kind(self) -> ReflectionKind:
422425
return ReflectionKind.CONSTRUCTOR

0 commit comments

Comments
 (0)