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

Function isExactOptionalPropertyMismatch

test/fixtures/snapshot/typescript.js:66893–66895  ·  view source on GitHub ↗
(source, target)

Source from the content-addressed store, hash-verified

66891 .filter(function (targetProp) { return isExactOptionalPropertyMismatch(getTypeOfPropertyOfType(source, targetProp.escapedName), getTypeOfSymbol(targetProp)); });
66892 }
66893 function isExactOptionalPropertyMismatch(source, target) {
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 }

Calls 2

maybeTypeOfKindFunction · 0.85
containsMissingTypeFunction · 0.85

Tested by

no test coverage detected