mirror of
https://github.com/billsonnn/nitro-imager
synced 2024-06-25 02:05:33 +02:00
23 lines
342 B
TypeScript
23 lines
342 B
TypeScript
import { Application } from './app';
|
|
import { NitroCore } from './core';
|
|
|
|
const core = new NitroCore();
|
|
const instance = new Application(core);
|
|
|
|
async function init(): Promise<void>
|
|
{
|
|
try
|
|
{
|
|
await instance.init();
|
|
}
|
|
|
|
catch(err)
|
|
{
|
|
console.error(err.message || err);
|
|
|
|
core.dispose();
|
|
}
|
|
}
|
|
|
|
init();
|