sol-merger
Version:
Merges all import files into single file.
24 lines (23 loc) • 892 B
TypeScript
import { ExportsAnalyzerResult } from './exportsAnalyzer';
export declare enum ExportType {
contract = "contract",
library = "library",
interface = "interface",
struct = "struct",
enum = "enum",
comment = "comment",
error = "error",
constant = "constant",
function = "function",
userDefinedValueType = "userDefinedValueType",
usingDirective = "usingDirective"
}
export type ContractLikeExportType = Exclude<ExportType, ExportType.constant | ExportType.function | ExportType.userDefinedValueType | ExportType.usingDirective>;
export interface ExportPluginProcessor {
name: string;
processExport(e: Readonly<ExportsAnalyzerResult>): ExportsAnalyzerResult | null;
}
export type ExportPluginCtor<T extends ExportPluginProcessor = ExportPluginProcessor> = new () => T;
export interface ExportPluginModule {
ExportPlugin: ExportPluginCtor;
}