py2ts.data.TSInterfaceRef¶
- class py2ts.data.TSInterfaceRef(name: str, *, not_required: bool = False, comment: str | None = None)¶
Represents a TypeScript interface reference.
Attributes
commentnot_requirednameMethods
__init__(name, *[, not_required, comment])exclude(exclude)Exclude fields from the type.
Get all TypeScript types required for the current type.
- exclude(exclude: set[str]) Self¶
Exclude fields from the type.
- referenced_types() set[TypescriptType]¶
Get all TypeScript types required for the current type.
This method should gather all the necessary types and dependencies related to the current type, aiding in understanding and organizing generated code where multiple type inter-dependencies exist.