Skip to content

probe-web / @probe-web/artifacts / ArtifactSource

Interface: ArtifactSource

Defined in: index.ts:28

A firmware image that can be read, and possibly watched, whatever it came from.

Properties

PropertyTypeDescriptionDefined in
namestringStable name for caching/logs (file name or URL).index.ts:30

Methods

bytes()

ts
bytes(): Promise<Uint8Array<ArrayBufferLike>>;

Defined in: index.ts:32

Read the current bytes.

Returns

Promise<Uint8Array<ArrayBufferLike>>


watch()?

ts
optional watch(onChange, opts?): () => void;

Defined in: index.ts:38

Call onChange with the new contents whenever the source changes; returns a function that stops watching. Only watchable sources (a FileArtifact) have it.

Parameters

ParameterType
onChange(a) => void
opts?WatchOptions

Returns

() => void