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

Function getNonAugmentationDeclaration

test/fixtures/snapshot/typescript.js:15040–15043  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

15038 }
15039 ts.isModuleAugmentationExternal = isModuleAugmentationExternal;
15040 function getNonAugmentationDeclaration(symbol) {
15041 var _a;
15042 return (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return !isExternalModuleAugmentation(d) && !(ts.isModuleDeclaration(d) && isGlobalScopeAugmentation(d)); });
15043 }
15044 ts.getNonAugmentationDeclaration = getNonAugmentationDeclaration;
15045 function isCommonJSContainingModuleKind(kind) {
15046 return kind === ts.ModuleKind.CommonJS || kind === ts.ModuleKind.Node16 || kind === ts.ModuleKind.NodeNext;

Callers 1

getSourceFileOfModuleFunction · 0.85

Calls 3

findMethod · 0.65

Tested by

no test coverage detected