Skip to content

Interface: AssetResolverOptions ​

Defined in: packages/core/src/assets.ts:12

Properties ​

assets ​

assets: readonly AssetDeclaration[]

Defined in: packages/core/src/assets.ts:13


baseUrl? ​

optional baseUrl?: string | URL

Defined in: packages/core/src/assets.ts:15

Resolves relative urls. Defaults to the document location in browsers.


fetch? ​

optional fetch?: {(input, init?): Promise<Response>; (input, init?): Promise<Response>; (input, init?): Promise<Response>; }

Defined in: packages/core/src/assets.ts:16

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

URL | RequestInfo

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

URL | RequestInfo

init? ​

RequestInit

Returns ​

Promise<Response>

Call Signature ​

(input, init?): Promise<Response>

MDN Reference

Parameters ​
input ​

string | URL | Request

init? ​

RequestInit

Returns ​

Promise<Response>


sha256? ​

optional sha256?: (bytes) => string | Promise<string>

Defined in: packages/core/src/assets.ts:18

Computes sha256 for verification. Defaults to WebCrypto.

Parameters ​

bytes ​

Uint8Array

Returns ​

string | Promise<string>