mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-05 16:36:52 +00:00
17 lines
418 B
TypeScript
17 lines
418 B
TypeScript
import { App } from "../app/app"
|
|
import { ConfigHooks } from "../config/hooks"
|
|
import { Format } from "../format"
|
|
import { LSP } from "../lsp"
|
|
import { Share } from "../share/share"
|
|
|
|
export async function bootstrap<T>(input: App.Input, cb: (app: App.Info) => Promise<T>) {
|
|
return App.provide(input, async (app) => {
|
|
Share.init()
|
|
Format.init()
|
|
ConfigHooks.init()
|
|
LSP.init()
|
|
|
|
return cb(app)
|
|
})
|
|
}
|