requireApiVersion
Call Signature
Section titled “Call Signature”requireApiVersion(
version
):boolean
Defined in: obsidian.d.ts:3608
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.
Parameters
Section titled “Parameters”version
Section titled “version”string
Returns
Section titled “Returns”boolean
Call Signature
Section titled “Call Signature”requireApiVersion(
version
):boolean
Defined in: src/obsidian/augmentations/functions.d.ts:627
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.
Parameters
Section titled “Parameters”version
Section titled “version”string
The version to check against.
Returns
Section titled “Returns”boolean
true
if the API version is equal or higher than the requested version.
Example
Section titled “Example”console.log(requireApiVersion('1.8.9')); // true