MCPcopy Create free account
hub / github.com/babel/babel / TSIntersectionType

Function TSIntersectionType

packages/babel-generator/src/node/parentheses.ts:306–315  ·  view source on GitHub ↗
(
  node: t.TSUnionType,
  parent: any,
  parentId: number,
)

Source from the content-addressed store, hash-verified

304}
305
306export function TSIntersectionType(
307 node: t.TSUnionType,
308 parent: any,
309 parentId: number,
310): boolean {
311 return (
312 parentId === __node("TSTypeOperator") ||
313 TSTypeOperator(node, parent, parentId)
314 );
315}
316
317export function TSInferType(
318 node: t.TSInferType,

Callers

nothing calls this directly

Calls 1

TSTypeOperatorFunction · 0.70

Tested by

no test coverage detected