Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 18.0Version 17.0 (current version)

On this page

KmnCompiler.init() method

Home > @keymanapp/kmc-kmn > KmnCompiler > init

KmnCompiler.init() method

Initialize the compiler, including loading the WASM host for kmcmplib. Copies options.

Signature:

init(callbacks: CompilerCallbacks, options: KmnCompilerOptions): Promise<boolean>;

Parameters

Parameter Type Description
callbacks CompilerCallbacks Callbacks for external interfaces, including message reporting and file io
options KmnCompilerOptions Compiler options

Returns:

Promise<boolean>

false if initialization fails