Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0

On this page

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