ensureReleaseAsset
Returns the cached, verified asset, downloading it first, with the user’s consent, when it is missing or corrupt.
Import:
import { ensureReleaseAsset } from '@mnaoumov/obsidian-lib/release-asset';Signature:
function ensureReleaseAsset(params: EnsureReleaseAssetParams): Promise<ReleaseAsset | null>Parameters:
| Parameter | Type | Description |
|---|---|---|
params |
EnsureReleaseAssetParams | The parameters. |
Returns: Promise<ReleaseAsset | null> — The verified asset, or null when the user declined the download.
Links to this page: