MCPcopy Create free account
hub / github.com/nodejs/node / getExactOptionalProperties

Function getExactOptionalProperties

test/fixtures/snapshot/typescript.js:66896–66898  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

66894 return !!source && !!target && maybeTypeOfKind(source, 32768 /* TypeFlags.Undefined */) && !!containsMissingType(target);
66895 }
66896 function getExactOptionalProperties(type) {
66897 return getPropertiesOfType(type).filter(function (targetProp) { return containsMissingType(getTypeOfSymbol(targetProp)); });
66898 }
66899 function getBestMatchingType(source, target, isRelatedTo) {
66900 if (isRelatedTo === void 0) { isRelatedTo = compareTypesAssignable; }
66901 return findMatchingDiscriminantType(source, target, isRelatedTo, /*skipPartial*/ true) ||

Callers

nothing calls this directly

Calls 4

getPropertiesOfTypeFunction · 0.85
containsMissingTypeFunction · 0.85
getTypeOfSymbolFunction · 0.85
filterMethod · 0.65

Tested by

no test coverage detected