Skip to content

Commit

Permalink
add schema-ready callback to type decl
Browse files Browse the repository at this point in the history
  • Loading branch information
konodyuk committed Dec 2, 2023
1 parent 0d7c81d commit 71aee33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ declare module "obsidian" {
}
interface MetadataCache {
on(name: "typing:schema-change", callback: () => any, ctx?: any): EventRef;
on(name: "typing:schema-ready", callback: () => any, ctx?: any): EventRef;
on(name: "dataview:api-ready", callback: (api: DataviewPlugin["api"]) => any, ctx?: any): EventRef;
on(
name: "dataview:metadata-change",
Expand All @@ -27,4 +28,4 @@ declare module "obsidian" {
ctx?: any
): EventRef;
}
}
}

0 comments on commit 71aee33

Please sign in to comment.