requireApiVersion() function
Returns true if the API version is equal or higher than the requested version. Use this to limit functionality that require specific API versions to avoid crashing on older Obsidian builds.
Signature:
export function requireApiVersion(version: string): boolean;
Parameters
Parameter | Type | Description |
---|---|---|
version | string |
Returns:
boolean