mirror of
https://github.com/mprojectscode/obsidian-safe-js-plugin.git
synced 2026-07-22 06:55:38 +00:00
| .. | ||
| src | ||
| .gitignore | ||
| bun.lock | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
Safe JS API
Types and helper functions for integrating with the Safe JS Obsidian plugin.
bun add -d @lemons_dev/obsidian-safe-js-api
import { getSafeJsApi } from '@lemons_dev/obsidian-safe-js-api';
import type { SafeJsCallerApi } from '@lemons_dev/obsidian-safe-js-api';
const safeJsApi: SafeJsCallerApi | undefined = getSafeJsApi(this.app, this);
This package does not augment Obsidian's global typings. It exports explicit integration types and small runtime helpers only.