siyuan 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -0
  2. package/package.json +6 -0
  3. package/siyuan.d.ts +12 -0
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # Siyuan Plugin API
2
+
3
+ This is siyuan plugin api
package/package.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "siyuan",
3
+ "author": "zuoez02",
4
+ "types": "siyuan.d.ts",
5
+ "version": "0.1.0"
6
+ }
package/siyuan.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ export class Plugin {
2
+ onload: () => void;
3
+ onunload: () => void;
4
+ registerCommand: (command: IPluginCommand) => void;
5
+ }
6
+
7
+ export interface IPluginCommand {
8
+ command: string;
9
+ shortcut?: string;
10
+ description?: string;
11
+ callback: (...args) => any;
12
+ }