sucrase
Version:
Super-fast alternative to Babel for when you can target modern JS runtimes
24 lines (23 loc) • 700 B
TypeScript
import type NameManager from "./NameManager";
declare const HELPERS: {
interopRequireWildcard: string;
interopRequireDefault: string;
createNamedExportFrom: string;
createStarExport: string;
nullishCoalesce: string;
asyncNullishCoalesce: string;
optionalChain: string;
asyncOptionalChain: string;
optionalChainDelete: string;
asyncOptionalChainDelete: string;
};
export declare class HelperManager {
readonly nameManager: NameManager;
helperNames: {
[baseName in keyof typeof HELPERS]?: string;
};
constructor(nameManager: NameManager);
getHelperName(baseName: keyof typeof HELPERS): string;
emitHelpers(): string;
}
export {};