Skip to content
Interfacecore/pluginv0.11.0

PluginOptions

Declares where a plugin may attach. Pass it as the Plugin<Opts> type argument. Every field you narrow goes to super() as well. 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'