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

Function forEachPropertyOfType

test/fixtures/snapshot/typescript.js:58775–58784  ·  view source on GitHub ↗
(type, action)

Source from the content-addressed store, hash-verified

58773 getPropertiesOfObjectType(type);
58774 }
58775 function forEachPropertyOfType(type, action) {
58776 type = getReducedApparentType(type);
58777 if (type.flags & 3670016 /* TypeFlags.StructuredType */) {
58778 resolveStructuredTypeMembers(type).members.forEach(function (symbol, escapedName) {
58779 if (isNamedMember(symbol, escapedName)) {
58780 action(symbol, escapedName);
58781 }
58782 });
58783 }
58784 }
58785 function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {
58786 var list = obj.properties;
58787 return list.some(function (property) {

Callers 1

Calls 5

getReducedApparentTypeFunction · 0.85
isNamedMemberFunction · 0.85
actionFunction · 0.85
forEachMethod · 0.65

Tested by

no test coverage detected