Skip to main content
Version: 0.8.x

Interface: ResourceSourceExtended

Defined in: utils/ResourceFetcherUtils.ts:72

Extended interface for resource sources, tracking download state and file locations.

Properties​

cacheFileUri?​

optional cacheFileUri: string

Defined in: utils/ResourceFetcherUtils.ts:106

The URI where the file is cached.


callback()?​

optional callback: (downloadProgress) => void

Defined in: utils/ResourceFetcherUtils.ts:86

Optional callback to report download progress (0 to 1).

Parameters​

downloadProgress​

number

Returns​

void


fileUri?​

optional fileUri: string

Defined in: utils/ResourceFetcherUtils.ts:101

The local file URI where the resource is stored.


next?​

optional next: ResourceSourceExtended

Defined in: utils/ResourceFetcherUtils.ts:111

Reference to the next resource in a linked chain of resources.


results​

results: string[]

Defined in: utils/ResourceFetcherUtils.ts:91

Array of paths or identifiers for the resulting files.


source​

source: ResourceSource

Defined in: utils/ResourceFetcherUtils.ts:76

The original source definition.


sourceType​

sourceType: SourceType

Defined in: utils/ResourceFetcherUtils.ts:81

The type of the source (local, remote, etc.).


uri?​

optional uri: string

Defined in: utils/ResourceFetcherUtils.ts:96

The URI of the resource.