Skip to main content

Function: getMergeStyleIntersectionOperands()

function getMergeStyleIntersectionOperands(
node: Readonly<TSESTree.TSTypeReference>
): readonly [TypeNode, TypeNode] | undefined;

Defined in: _internal/merge-style-intersection.ts:35

Match a key-removing type reference in an intersection containing its source.

Parametersโ€‹

nodeโ€‹

Readonly<TSESTree.TSTypeReference>

Candidate key-removing type reference.

Returnsโ€‹

readonly [TypeNode, TypeNode] | undefined

The destination and source operands of a matching intersection.