Skip to main content
Version: 0.10.0

Type Alias: ResourceOptions

ResourceOptions = object

Defined in: utils.ts:16

Options accepted by useResourceDownload and by every use<Task> hook built on top of it.

Properties

forceDownload?

readonly optional forceDownload: boolean

Defined in: utils.ts:24

Re-downloads every remote source even when it is already cached, replacing the cached copy. Use to recover from a corrupted file or to pick up a model that changed behind a stable URL.


preventLoad?

readonly optional preventLoad: boolean

Defined in: utils.ts:18

If true, prevents checks and downloads, resetting the hook state.