Framework v2.x

Install #

Available since 2.12.0
Experimental: non-backward compatible changes or removal may occur in any future release.

Register code executed when the application starts, and only once on any given environment. Once successfully executed, the code associated to an install identifier will never be run again on that environment.

If this method throws, the application won't start.

Copied to clipboard!
install (id: string, handler: () => Promise<void>, description?: string): void

Usage #

Copied to clipboard!
await app.install('mappings-2.4.3', () => {})