@visulima/packem
Version:
A fast and modern bundler for Node.js and TypeScript.
15 lines (14 loc) • 498 B
text/typescript
import type { Pail } from "@visulima/pail";
import type { Plugin } from "rollup";
export type PatchTypesOptions = {
identifierReplacements?: Record<string, Record<string, string>>;
};
/**
* Patch the types files before passing to dts plugin
*
* 1. Validate unallowed dependency imports
* 2. Replace confusing type names
* 3. Strip leftover internal types
* 4. Clean unnecessary comments
*/
export declare const patchTypescriptTypes: (options: PatchTypesOptions, logger: Pail) => Plugin;