( modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined, name: ts.Identifier | string, type?: ts.TypeNode, defaultType?: ts.TypeNode )
| 140 | } |
| 141 | |
| 142 | export function typeParameterDeclaration( |
| 143 | modifiers: readonly modifierKeys[] | readonly ts.Modifier[] | undefined, |
| 144 | name: ts.Identifier | string, |
| 145 | type?: ts.TypeNode, |
| 146 | defaultType?: ts.TypeNode |
| 147 | ): ts.TypeParameterDeclaration { |
| 148 | return ts.factory.createTypeParameterDeclaration( |
| 149 | modifiers?.map((m) => modifier(m)), |
| 150 | identifier(name), |
| 151 | type, |
| 152 | defaultType |
| 153 | ); |
| 154 | } |
| 155 | |
| 156 | export function unionType(nodes: ts.TypeNode[]): ts.UnionTypeNode { |
| 157 | return ts.factory.createUnionTypeNode(nodes); |
nothing calls this directly
no test coverage detected
searching dependent graphs…