Skip to content

extendPlatform

extendPlatform(extra): void

Defined in: platform/base.ts:33

Add capabilities to the platform this app is already on — a host answering what its adapter cannot (the editor’s play realm stands in for an open data context this way). Its own door because setPlatform({ ...getPlatform() }) drops every method an adapter holds on its PROTOTYPE.

Partial<PlatformAdapter>

void

Error if no platform is set — there is nothing to extend yet.