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

Function isTypeOrBaseIdenticalTo

test/fixtures/snapshot/typescript.js:69097–69100  ·  view source on GitHub ↗
(s, t)

Source from the content-addressed store, hash-verified

69095 }
69096 }
69097 function isTypeOrBaseIdenticalTo(s, t) {
69098 return exactOptionalPropertyTypes && t === missingType ? s === t :
69099 (isTypeIdenticalTo(s, t) || !!(t.flags & 4 /* TypeFlags.String */ && s.flags & 128 /* TypeFlags.StringLiteral */ || t.flags & 8 /* TypeFlags.Number */ && s.flags & 256 /* TypeFlags.NumberLiteral */));
69100 }
69101 function isTypeCloselyMatchedBy(s, t) {
69102 return !!(s.flags & 524288 /* TypeFlags.Object */ && t.flags & 524288 /* TypeFlags.Object */ && s.symbol && s.symbol === t.symbol ||
69103 s.aliasSymbol && s.aliasTypeArguments && s.aliasSymbol === t.aliasSymbol);

Callers

nothing calls this directly

Calls 1

isTypeIdenticalToFunction · 0.85

Tested by

no test coverage detected