AbstractGenerator.init() method
Home > @keymanapp/kmc-generate > AbstractGenerator > init
AbstractGenerator.init() method
Initialize the generator. Copies options.
Signature:
init(callbacks: CompilerCallbacks, options: GeneratorOptions): Promise<boolean>;
Parameters
Parameter | Type | Description |
---|---|---|
callbacks | CompilerCallbacks | Callbacks for external interfaces, including message reporting and file io |
options | GeneratorOptions | Generator options |
Returns:
Promise<boolean>
false if initialization fails