MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / typesFrom

Function typesFrom

test/runner/definitions_test.js:350–358  ·  view source on GitHub ↗

* @param {string} sourceFile

(sourceFile)

Source from the content-addressed store, hash-verified

348 * @param {string} sourceFile
349 */
350function typesFrom(sourceFile) {
351 const project = new Project({
352 tsConfigFilePath: path.join(pathToRootOfProject, 'tsconfig.json'),
353 resolutionHost,
354 })
355 project.addSourceFileAtPath(sourceFile)
356 project.resolveSourceFileDependencies()
357 return project
358}
359
360/**
361 * @param {import('ts-morph').Node} node

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected