I am currently working on a project hosted at https://github.com/GooGee/Code-Builder
This particular file is being loaded by the Typescript Compiler API:
import * as fs from 'fs'
Below is a snippet of my code:
function getExportList(node: ts.Identifier, checker: ts.TypeChecker) {
const symbol = checker.getSymbolAtLocation(node)
return checker.getExportsOfModule(symbol)
}
I am attempting to retrieve exported members of the module fs
.
I am aware that the symbol
is not a ts.ModuleSymbol
, which means it will not work as intended.
What steps should I take next?