onelang
Version:
OneLang transpiler framework core
27 lines (26 loc) • 641 B
TypeScript
import { LangFileSchema } from "./LangFileSchema";
export interface LangConfig {
name?: string;
stdlibFn: string;
request: {
lang?: string;
code: string;
packageSources?: {
packageName: string;
fileName: string;
code: string;
}[];
className?: string;
methodName?: string;
};
schema?: LangFileSchema.LangFile;
}
export declare type LangConfigs = {
[name: string]: LangConfig;
};
export declare const langConfigs: LangConfigs;
export interface CompileResult {
result?: string;
elapsedMs?: number;
exceptionText?: string;
}