MCPcopy Index your code
hub / github.com/nodejs/node / getPropertyOfUnionOrIntersectionType

Function getPropertyOfUnionOrIntersectionType

test/fixtures/snapshot/typescript.js:59333–59337  ·  view source on GitHub ↗
(type, name, skipObjectFunctionPropertyAugment)

Source from the content-addressed store, hash-verified

59331 return property;
59332 }
59333 function getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment) {
59334 var property = getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);
59335 // We need to filter out partial properties in union types
59336 return property && !(ts.getCheckFlags(property) & 16 /* CheckFlags.ReadPartial */) ? property : undefined;
59337 }
59338 /**
59339 * Return the reduced form of the given type. For a union type, it is a union of the normalized constituent types.
59340 * For an intersection of types containing one or more mututally exclusive discriminant properties, it is 'never'.

Callers 3

getPropertyOfTypeFunction · 0.85
appendPropTypeFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…