mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
15 lines
633 B
TypeScript
15 lines
633 B
TypeScript
import { IRollupContext } from "./context";
|
|
import { ICode } from "./tscache";
|
|
import { IRollupOptions } from "./irollup-options";
|
|
import { IOptions } from "./ioptions";
|
|
import { Partial } from "./partial";
|
|
export default function typescript(options?: Partial<IOptions>): {
|
|
name: string;
|
|
options(config: IRollupOptions): 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({dest, file}: IRollupOptions): void;
|
|
};
|