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

Function getPropertiesOfObjectType

test/fixtures/snapshot/typescript.js:58727–58732  ·  view source on GitHub ↗

Return properties of an object type or an empty array for other types

(type)

Source from the content-addressed store, hash-verified

58725 }
58726 /** Return properties of an object type or an empty array for other types */
58727 function getPropertiesOfObjectType(type) {
58728 if (type.flags & 524288 /* TypeFlags.Object */) {
58729 return resolveStructuredTypeMembers(type).properties;
58730 }
58731 return ts.emptyArray;
58732 }
58733 /** If the given type is an object type and that type has a property by the given name,
58734 * return the symbol for that property. Otherwise return undefined.
58735 */

Callers 12

addPropertyToElementListFunction · 0.85
getPropertiesOfTypeFunction · 0.85
propertiesIdenticalToFunction · 0.85
transformTypeOfMembersFunction · 0.85
inferFromPropertiesFunction · 0.85
checkIndexConstraintsFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…