Type Alias PagePluginFunction<PluginDataType>
Type Parameters
- PluginDataType = Record<string, unknown>
Type declaration
- (req: PagePluginRequest, plugindata: PluginDataType): Promise<void> | void
Parameters
- req: PagePluginRequest
- plugindata: PluginDataType
Returns Promise<void> | void
Defines the callback offered by a plugin (not exported from webhare/router yet, plugin APIs are still unstable)