Skip to content

PlatformPlugin

PlatformPlugin: object

Defined in: packages/core/src/plugin.ts:142

Companion object for the PlatformPlugin type. Provides factory and type guard utilities.

readonly create(definition, methods): PlatformPlugin

Create a PlatformPlugin from a declarative definition and methods.

PluginDefinition

declarative plugin configuration

PluginMethods

platform-specific data access implementations

PlatformPlugin

a fully wired PlatformPlugin

definition.rateLimitStrategy is initialized

returns a fully functional PlatformPlugin with wired RestManager

readonly is(value): value is PlatformPlugin

Type guard for PlatformPlugin.

unknown

the value to check

value is PlatformPlugin

true if value implements PlatformPlugin

returns true if value has all required PlatformPlugin properties

const plugin = PlatformPlugin.create(definition, methods);
if (PlatformPlugin.is(unknown)) { ... }