@nestjs/cli
Version:
Nest - modern, fast, powerful node.js web framework (@cli)
20 lines (19 loc) • 745 B
TypeScript
import * as ts from 'typescript';
declare type Transformer = ts.TransformerFactory<any> | ts.CustomTransformerFactory;
declare type PluginEntry = string | PluginAndOptions;
interface PluginAndOptions {
name: 'string';
options: Record<string, any>;
}
export interface NestCompilerPlugin {
before?: (options?: Record<string, any>, program?: ts.Program) => Transformer;
after?: (options?: Record<string, any>, program?: ts.Program) => Transformer;
}
export interface MultiNestCompilerPlugins {
beforeHooks: Array<(program?: ts.Program) => Transformer>;
afterHooks: Array<(program?: ts.Program) => Transformer>;
}
export declare class PluginsLoader {
load(plugins?: PluginEntry[]): MultiNestCompilerPlugins;
}
export {};