@polyipseity/obsidian-plugin-library
Version:
Library for Obsidian plugins.
6 lines • 527 B
TypeScript
import type { Plugins, Workspace } from "obsidian";
import type { AsyncOrSync } from "ts-essentials";
import type { PluginContext } from "./plugin.js";
export declare function patchPlugin<const I extends string>(context: PluginContext, id: I, patcher: (plugin: Plugins.Map<I>) => AsyncOrSync<() => void>): Promise<() => void>;
export declare function patchWindows(workspace: Workspace, patcher: (self0: Window & typeof globalThis) => (self0: Window & typeof globalThis) => void): () => void;
//# sourceMappingURL=patch.d.ts.map