Skip to content
Interfacecore/pluginv0.10.0

PluginOptions

Declares where a plugin may attach. Pass it as the Plugin<Opts> type argument. attach() fails to compile when the host does not match.

interface PluginOptions

runtime

Which runtime the plugin runs on. 'any' attaches to either one.

runtime?: 'server' | 'edge' | 'any'

Default:'any'

transport

Which transport the plugin runs on. 'any' attaches to either one.

transport?: 'gateway' | 'http' | 'any'

Default:'any'