@kismet.ts/shared / Exports / RemoteKismetAssetFetchOptions

Interface: RemoteKismetAssetFetchOptions

Table of contents

Properties

Properties

fetch

fetch: (url: string) => Promise<IResponse>

Type declaration

▸ (url): Promise<IResponse>

A base implementation of a cross platfrom compatible fetch function. Use the current platform's fetch implementation for this value. TODO: remove when all platforms have same fetch / type exists for this

Parameters
NameType
urlstring
Returns

Promise<IResponse>

Defined in

remote/nodes.ts:24open in new window


type

Optional type: "text" | "json"

The data type of the asset to retreive

Default

'json'

Defined in

remote/nodes.ts:29open in new window


version

version: string

The version of the asset to fetch. If an incorrect asset version is provided, an error will be thrown

Defined in

remote/nodes.ts:18open in new window