( node: t.TSIntersectionType, parent: any, parentId: number, )
| 318 | } |
| 319 | |
| 320 | export function TSIntersectionType( |
| 321 | node: t.TSIntersectionType, |
| 322 | parent: any, |
| 323 | parentId: number, |
| 324 | ): boolean { |
| 325 | return ( |
| 326 | parentId === __node("TSTypeOperator") || |
| 327 | TSTypeOperator(node, parent, parentId) || |
| 328 | // `A & (& B)` must not become `A & & B` |
| 329 | (parentId === __node("TSIntersectionType") && node.types.length === 1) |
| 330 | ); |
| 331 | } |
| 332 | |
| 333 | export function TSInferType( |
| 334 | node: t.TSInferType, |
nothing calls this directly
no test coverage detected