@mnrendra/mixexports
Version:
A function to mix CommonJS exports.
35 lines (32 loc) • 810 B
TypeScript
/**
* The options interface.
*
* @see https://github.com/mnrendra/mixexports#readme
*/
interface Options {
/**
* To specify whether to define `exports.__esModule`.
*
* @default undefined
*/
defineEsModule?: boolean;
/**
* To produce the minified or pretty format.
*
* @default false
*/
minify?: boolean;
}
/**
* A function to mix **CommonJS** exports.
*
* @param {string} source - The source code in a string.
* @param {Options} options - The options object.
*
* @returns {string} Modified code in a string.
*
* @see https://github.com/mnrendra/mixexports#readme
*/
declare const main: (source: string, { defineEsModule, minify }?: Options) => Promise<string>;
export { type Options, main as default };
//# sourceMappingURL=index.d.ts.map