mirror of
https://github.com/h-sphere/sql-seal.git
synced 2026-07-22 10:10:28 +00:00
17 lines
401 B
TypeScript
17 lines
401 B
TypeScript
|
|
import { asFactory, buildContainer } from "@hypersphere/dity";
|
||
|
|
import { ContextMenuInit } from "./init";
|
||
|
|
import { App, Plugin } from "obsidian";
|
||
|
|
|
||
|
|
export const contextMenu = buildContainer(c =>
|
||
|
|
c.register({
|
||
|
|
init: asFactory(ContextMenuInit)
|
||
|
|
})
|
||
|
|
.externals<{
|
||
|
|
app: App,
|
||
|
|
plugin: Plugin
|
||
|
|
}>()
|
||
|
|
.exports('init')
|
||
|
|
)
|
||
|
|
|
||
|
|
export type ContextMenuModule = typeof contextMenu
|