[Home](./index.md) > [@keymanapp/kmc-model](./kmc-model.md) > [LexicalModelCompiler](./kmc-model.lexicalmodelcompiler.md) > [write](./kmc-model.lexicalmodelcompiler.write.md) ## LexicalModelCompiler.write() method Write artifacts from a successful compile to disk, via callbacks methods. The artifacts written may include: - .model.js file - Javascript lexical model for web and touch platforms **Signature:** ```typescript write(artifacts: LexicalModelCompilerArtifacts): Promise; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | artifacts | [LexicalModelCompilerArtifacts](./kmc-model.lexicalmodelcompilerartifacts.md) | object containing artifact binary data to write out | **Returns:** Promise<boolean> always returns true