Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/types/plugin.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { RequestRoute } from './request';
import { RequestRoute, ReqRef, ReqRefDefaults } from './request';
import { RouteOptions } from './route';
import { Server } from './server';
import { Lifecycle } from './utils';
Expand Down Expand Up @@ -47,7 +47,7 @@ export interface PluginRegistered {
export interface PluginsStates {
}

export interface PluginSpecificConfiguration {
export interface PluginSpecificConfiguration<Refs extends ReqRef = ReqRefDefaults> {
}

export interface PluginNameVersion {
Expand Down
2 changes: 1 addition & 1 deletion lib/types/route.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ export interface CommonRouteProperties<Refs extends ReqRef = ReqRefDefaults> {
* Plugin-specific configuration. plugins is an object where each key is a plugin name and the value is the plugin configuration.
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-routeoptionsplugins)
*/
plugins?: PluginSpecificConfiguration | undefined;
plugins?: PluginSpecificConfiguration<Refs> | undefined;

/**
* @default none.
Expand Down
Loading