Type Alias SmartAssetLoadOptions
SmartAssetLoadOptions: SmartAssetRegistrationOptions & {
reloadSource?: () => Promise<File>;
}
reloadSource?: () => Promise<File>;
}
Type Declaration
-
OptionalReadonlyreloadSource?: () => 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 aFileSystemFileHandleso Reload can re-read the underlying file from disk.
Optional load-time configuration. Includes the persistable SmartAssetRegistrationOptions fields (type, extension, metadata) plus a transient
reloadSourcecallback used by ReloadSmartAssetAsync to fetch fresh bytes from disk for blob-backed assets.