mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
21 lines
649 B
TypeScript
21 lines
649 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;
|
|
}
|
|
export default 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;
|
|
};
|