mirror of
https://github.com/motajs/template.git
synced 2026-10-19 21:30:30 +08:00
13 lines
324 B
TypeScript
13 lines
324 B
TypeScript
import { WebLoadStarter } from '@motajs/loader';
|
|
import { createClientCore } from './client/entry';
|
|
import { IClientCore } from '@user/client-modules';
|
|
|
|
declare global {
|
|
interface Window {
|
|
mainClient: IClientCore;
|
|
}
|
|
}
|
|
|
|
const client = await createClientCore(new WebLoadStarter());
|
|
window.mainClient = client;
|