mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-07 21:22:34 +01:00
This commit is contained in:
parent
52c9b5fbca
commit
4b02a8a846
11 changed files with 197 additions and 22 deletions
15
app/src/types/index.d.ts
vendored
15
app/src/types/index.d.ts
vendored
|
|
@ -301,6 +301,16 @@ declare interface IDockTab {
|
|||
hotkeyLangId?: string // 常量中无法存变量
|
||||
}
|
||||
|
||||
declare interface ICommand {
|
||||
langKey: string, // 多语言 key
|
||||
hotkey: string,
|
||||
customHotkey?: string,
|
||||
callback?: () => void
|
||||
fileTreeCallback?: (file: import("../layout/dock/Files").Files) => void
|
||||
editorCallback?: (protyle: IProtyle) => void
|
||||
dockCallback?: (element: HTMLElement) => void
|
||||
}
|
||||
|
||||
declare interface IPluginData {
|
||||
name: string,
|
||||
js: string,
|
||||
|
|
@ -635,6 +645,11 @@ declare interface IGraph {
|
|||
}
|
||||
|
||||
declare interface IKeymap {
|
||||
plugin: {
|
||||
[key: string]: {
|
||||
[key: string]: IKeymapItem
|
||||
}
|
||||
}
|
||||
general: { [key: string]: IKeymapItem }
|
||||
editor: {
|
||||
general: { [key: string]: IKeymapItem }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue