mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
20 lines
719 B
TypeScript
20 lines
719 B
TypeScript
import { PluginContext } from "rollup";
|
|
export declare enum VerbosityLevel {
|
|
Error = 0,
|
|
Warning = 1,
|
|
Info = 2,
|
|
Debug = 3
|
|
}
|
|
/** cannot be used in options hook (which does not have this.warn and this.error), but can be in other hooks */
|
|
export declare class RollupContext {
|
|
private verbosity;
|
|
private bail;
|
|
private context;
|
|
private prefix;
|
|
constructor(verbosity: VerbosityLevel, bail: boolean, context: PluginContext, prefix?: string);
|
|
warn(message: string | (() => string)): void;
|
|
error(message: string | (() => string)): void | never;
|
|
info(message: string | (() => string)): void;
|
|
debug(message: string | (() => string)): void;
|
|
}
|
|
//# sourceMappingURL=context.d.ts.map
|