UNPKG

431 BTypeScriptView Raw
1import type TokenProcessor from "../TokenProcessor";
2/**
3 * Special case code to scan for imported names in ESM TypeScript. We need to do this so we can
4 * properly get globals so we can compute shadowed globals.
5 *
6 * This is similar to logic in CJSImportProcessor, but trimmed down to avoid logic with CJS
7 * replacement and flow type imports.
8 */
9export default function getTSImportedNames(tokens: TokenProcessor): Set<string>;