Skip to content

five-on-it / apps/creator/src/local-platform / LocalPlatform

Interface: LocalPlatform ​

Defined in: apps/creator/src/local-platform.ts:61

The platform in this process.

Properties ​

app ​

app: FastifyInstance<RawServerDefault>

Defined in: apps/creator/src/local-platform.ts:62


builds ​

builds: BuildQueue

Defined in: apps/creator/src/local-platform.ts:64


client ​

client: CreatorClient

Defined in: apps/creator/src/local-platform.ts:69

Its private routes, as a runner calls them.


fetch ​

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

Defined in: apps/creator/src/local-platform.ts:67

The fetch that reaches it at LOCAL_API.

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>


social ​

social: SocialHub

Defined in: apps/creator/src/local-platform.ts:65


store ​

store: Store

Defined in: apps/creator/src/local-platform.ts:63

Methods ​

as() ​

as<T>(method, url, body?, email?): Promise<{ body: T; status: number; }>

Defined in: apps/creator/src/local-platform.ts:71

A request as an e-mail's dev account (ada's by default): its status and its body.

Type Parameters ​

T ​

T = Record<string, unknown>

Parameters ​

method ​

"POST" | "GET" | "PUT"

url ​

string

body? ​

unknown

email? ​

string

Returns ​

Promise<{ body: T; status: number; }>


close() ​

close(): Promise<void>

Defined in: apps/creator/src/local-platform.ts:78

Stops its builds and closes it.

Returns ​

Promise<void>