stoplightio/scripts

View on GitHub
vendor/rollup-plugin-optimize-lodash-imports/transform/dist/lodash-specifiers-to-es.d.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { ImportSpecifier } from "estree";
/**
 * Turns a generic lodash import into a specific import referencing the "lodash-es"
 * pacakge. Note that lodash-es cannot be imported from CommonJS.
 *
 * @param base "lodash" or "lodash/fp"
 * @param specifiers from an AST; assumes they are all ImportSpecifiers
 */
export declare function lodashSpecifiersToEs(base: string, specifiers: Array<ImportSpecifier>): Array<string>;
//# sourceMappingURL=lodash-specifiers-to-es.d.ts.map