docs-site/api-doc-type-merging
Inheritance resolution: copies inherited members onto subtypes, substituting generic type args.
(A documented package is a normal library, not an augmentation of another package’s declarations, so there is no official-vs-unofficial merge machinery here — only the generic inheritance helpers.)
Functions
Section titled “Functions”| Function | Description |
|---|---|
| buildTypeParameterMap | Build a mapping from parent type parameter names to concrete type arguments. E.g., parent has typeParameters: ['Instance extends BaseInstance'] and child extends Parent<CanvasPluginInstance> → \{Instance: 'CanvasPluginInstance'\} |
| parseTypeArguments | Parse generic type arguments from a base type expression. E.g., InternalPlugin<CanvasPluginInstance> → ['CanvasPluginInstance'] Handles nested angle brackets: Foo<Bar<Baz>, Qux> → ['Bar<Baz>', 'Qux'] |
| resolveInheritedMembers | Copies every inherited member onto its subtypes, substituting the type arguments the subtype passes. |
| substituteMemberTypes | Apply type parameter substitution to all type-bearing fields of a member |
| substituteTypeParams | Substitute generic type parameters in a type string using a mapping |