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

Function isConvertibleFunction

test/fixtures/snapshot/typescript.js:144796–144802  ·  view source on GitHub ↗
(node, checker)

Source from the content-addressed store, hash-verified

144794 }
144795 }
144796 function isConvertibleFunction(node, checker) {
144797 return !ts.isAsyncFunction(node) &&
144798 node.body &&
144799 ts.isBlock(node.body) &&
144800 hasReturnStatementWithPromiseHandler(node.body, checker) &&
144801 returnsPromise(node, checker);
144802 }
144803 function returnsPromise(node, checker) {
144804 var signature = checker.getSignatureFromDeclaration(node);
144805 var returnType = signature ? checker.getReturnTypeOfSignature(signature) : undefined;

Callers 1

Calls 3

returnsPromiseFunction · 0.85
isAsyncFunctionMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…