API

Type Alias SmartAssetLoadOptions

SmartAssetLoadOptions: SmartAssetRegistrationOptions & {
    reloadSource?: () => Promise<File>;
}

Optional load-time configuration. Includes the persistable SmartAssetRegistrationOptions fields (type, extension, metadata) plus a transient reloadSource callback used by ReloadSmartAssetAsync to fetch fresh bytes from disk for blob-backed assets.

Type Declaration

  • Optional ReadonlyreloadSource?: () => Promise<File>

    Optional callback invoked by ReloadSmartAssetAsync to obtain a fresh File for the asset. Use this when the registered URL is a blob: URL backed by a FileSystemFileHandle so Reload can re-read the underlying file from disk.