Skip to content

@ue-too/being-portable / HostDefinition

型別別名: HostDefinition ​

HostDefinition = object

定義於: being-portable/src/host.ts:44

What a host passes to defineHost.

屬性 ​

effects? ​

readonly optional effects: Readonly<Record<string, EffectImplementation>>

定義於: being-portable/src/host.ts:45


limits? ​

readonly optional limits: Partial<Limits>

定義於: being-portable/src/host.ts:48


onError()? ​

readonly optional onError: (error) => void

定義於: being-portable/src/host.ts:50

Receives every runtime failure. Defaults to console.error.

參數 ​

error ​

RuntimeError

回傳 ​

void


services? ​

readonly optional services: Partial<Services>

定義於: being-portable/src/host.ts:47

Defaults to Math.random and Date.now.