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

Function typeHasStaticProperty

test/fixtures/snapshot/typescript.js:74937–74940  ·  view source on GitHub ↗
(propName, containingType)

Source from the content-addressed store, hash-verified

74935 isEmptyObjectType(containingType);
74936 }
74937 function typeHasStaticProperty(propName, containingType) {
74938 var prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName);
74939 return prop !== undefined && !!prop.valueDeclaration && ts.isStatic(prop.valueDeclaration);
74940 }
74941 function getSuggestedLibForNonExistentName(name) {
74942 var missingName = diagnosticName(name);
74943 var allFeatures = ts.getScriptTargetFeatures();

Callers 2

Calls 2

getPropertyOfTypeFunction · 0.85
getTypeOfSymbolFunction · 0.85

Tested by

no test coverage detected