Skip to main content
Version: Next

Interface: ResourceSourceExtended

Defined in: utils/ResourceFetcherUtils.ts:70

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

Properties

cacheFileUri?

optional cacheFileUri: string

Defined in: utils/ResourceFetcherUtils.ts:104

The URI where the file is cached.


callback()?

optional callback: (downloadProgress) => void

Defined in: utils/ResourceFetcherUtils.ts:84

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

Parameters

downloadProgress

number

Returns

void


fileUri?

optional fileUri: string

Defined in: utils/ResourceFetcherUtils.ts:99

The local file URI where the resource is stored.


next?

optional next: ResourceSourceExtended

Defined in: utils/ResourceFetcherUtils.ts:109

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


results

results: string[]

Defined in: utils/ResourceFetcherUtils.ts:89

Array of paths or identifiers for the resulting files.


source

source: ResourceSource

Defined in: utils/ResourceFetcherUtils.ts:74

The original source definition.


sourceType

sourceType: SourceType

Defined in: utils/ResourceFetcherUtils.ts:79

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


uri?

optional uri: string

Defined in: utils/ResourceFetcherUtils.ts:94

The URI of the resource.