mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
22 lines
702 B
TypeScript
22 lines
702 B
TypeScript
import { IRollupContext } from "./context";
|
|
import { ICode } from "./tscache";
|
|
export interface IOptions {
|
|
include?: string;
|
|
exclude?: string;
|
|
check?: boolean;
|
|
verbosity?: number;
|
|
clean?: boolean;
|
|
cacheRoot?: string;
|
|
abortOnError?: boolean;
|
|
rollupCommonJSResolveHack?: boolean;
|
|
tsconfig?: string;
|
|
}
|
|
export declare function typescript(options?: IOptions): {
|
|
options(config: any): void;
|
|
resolveId(importee: string, importer: string): string | null;
|
|
load(id: string): string | undefined;
|
|
transform(this: IRollupContext, code: string, id: string): ICode | undefined;
|
|
ongenerate(bundleOptions: any): void;
|
|
onwrite(): void;
|
|
};
|