forked from SkepticMystic/breadcrumbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
45 lines (44 loc) · 1.13 KB
/
types.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import "obsidian";
import { DataviewApi } from "obsidian-dataview";
declare module "obsidian" {
interface App {
plugins: {
enabledPlugins: Set<string>;
plugins: {
[id: string]: any;
dataview?: {
api?: DataviewApi;
};
juggl: any;
metaedit: {
api: {
getAutopropFunction: () => any;
getUpdateFunction: () => any;
getFileFromTFileOrPath: () => any;
getGetPropertyValueFunction: () => any;
getGetFilesWithPropertyFunction: () => any;
getCreateYamlPropertyFunction: () => any;
getGetPropertiesInFile: () => any;
};
};
};
};
}
interface MetadataCache {
on(
name: "dataview:api-ready",
callback: (api: DataviewPlugin["api"]) => any,
ctx?: any
): EventRef;
on(
name: "dataview:metadata-change",
callback: (
...args:
| [op: "rename", file: TAbstractFile, oldPath: string]
| [op: "delete", file: TFile]
| [op: "update", file: TFile]
) => any,
ctx?: any
): EventRef;
}
}