langium-cli
Version:
CLI for Langium - the language engineering tool
24 lines • 1.01 kB
TypeScript
/******************************************************************************
* Copyright 2021 TypeFox GmbH
* This program and the accompanying materials are made available under the
* terms of the MIT License, which is available in the project root.
******************************************************************************/
import type { LangiumConfig } from './package-types.js';
export declare function generate(options: GenerateOptions): Promise<boolean>;
export interface GenerateOptions {
file?: string;
mode?: 'development' | 'production';
watch?: boolean;
}
export interface ExtractTypesOptions {
grammar: string;
output?: string;
force: boolean;
}
export interface GeneratorResult {
success: boolean;
files: string[];
}
export declare function runGenerator(config: LangiumConfig, options: GenerateOptions): Promise<GeneratorResult>;
export declare function generateTypes(options: ExtractTypesOptions): Promise<void>;
//# sourceMappingURL=generate.d.ts.map