Skip to content

five-on-it / apps/client/src/ui/platform / PlatformDeps

Interface: PlatformDeps ​

Defined in: apps/client/src/ui/platform.ts:268

What the platform client needs from the page.

Properties ​

fetch ​

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

Defined in: apps/client/src/ui/platform.ts:270

The HTTP client.

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>


newDeviceId ​

newDeviceId: () => string

Defined in: apps/client/src/ui/platform.ts:274

A fresh device id.

Returns ​

string


storage ​

storage: Pick<Storage, "getItem" | "setItem" | "removeItem">

Defined in: apps/client/src/ui/platform.ts:272

Where the device id and the session are kept.