@@ -13,7 +13,7 @@ import {
13
13
ServerRegisterPluginObject ,
14
14
ServerRegisterPluginObjectArray ,
15
15
DecorateName ,
16
- DecorationValue ,
16
+ DecorationMethod ,
17
17
HandlerDecorationMethod ,
18
18
PluginProperties
19
19
} from '../plugin' ;
@@ -310,13 +310,20 @@ export class Server<A = ServerApplicationState> {
310
310
* [See docs](https://github.com/hapijs/hapi/blob/master/API.md#-serverdecoratetype-property-method-options)
311
311
*/
312
312
decorate ( type : 'handler' , property : DecorateName , method : HandlerDecorationMethod , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
313
- decorate ( type : 'request' , property : DecorateName , method : ( existing : ( ( ...args : any [ ] ) => any ) ) => ( request : Request ) => DecorationValue < Request > , options : { apply : true , extend : true } ) : void ;
314
- decorate ( type : 'request' , property : DecorateName , method : ( request : Request ) => DecorationValue < Request > , options : { apply : true , extend ?: boolean | undefined } ) : void ;
315
- decorate ( type : 'request' , property : DecorateName , method : DecorationValue < Request > , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
316
- decorate ( type : 'toolkit' , property : DecorateName , method : ( existing : ( ( ...args : any [ ] ) => any ) ) => DecorationValue < ResponseToolkit > , options : { apply ?: boolean | undefined , extend : true } ) : void ;
317
- decorate ( type : 'toolkit' , property : DecorateName , method : DecorationValue < ResponseToolkit > , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
318
- decorate ( type : 'server' , property : DecorateName , method : ( existing : ( ( ...args : any [ ] ) => any ) ) => DecorationValue < Server > , options : { apply ?: boolean | undefined , extend : true } ) : void ;
319
- decorate ( type : 'server' , property : DecorateName , method : DecorationValue < Server > , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
313
+ decorate ( type : 'request' , property : DecorateName , method : ( existing : ( ( ...args : any [ ] ) => any ) ) => ( request : Request ) => DecorationMethod < Request > , options : { apply : true , extend : true } ) : void ;
314
+ decorate ( type : 'request' , property : DecorateName , method : ( request : Request ) => DecorationMethod < Request > , options : { apply : true , extend ?: boolean | undefined } ) : void ;
315
+ decorate ( type : 'request' , property : DecorateName , method : DecorationMethod < Request > , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
316
+ decorate ( type : 'request' , property : DecorateName , value : ( existing : ( ( ...args : any [ ] ) => any ) ) => ( request : Request ) => any , options : { apply : true , extend : true } ) : void ;
317
+ decorate ( type : 'request' , property : DecorateName , value : ( request : Request ) => any , options : { apply : true , extend ?: boolean | undefined } ) : void ;
318
+ decorate ( type : 'request' , property : DecorateName , value : any , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
319
+ decorate ( type : 'toolkit' , property : DecorateName , method : ( existing : ( ( ...args : any [ ] ) => any ) ) => DecorationMethod < ResponseToolkit > , options : { apply ?: boolean | undefined , extend : true } ) : void ;
320
+ decorate ( type : 'toolkit' , property : DecorateName , method : DecorationMethod < ResponseToolkit > , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
321
+ decorate ( type : 'toolkit' , property : DecorateName , value : ( existing : ( ( ...args : any [ ] ) => any ) ) => any , options : { apply ?: boolean | undefined , extend : true } ) : void ;
322
+ decorate ( type : 'toolkit' , property : DecorateName , value : any , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
323
+ decorate ( type : 'server' , property : DecorateName , method : ( existing : ( ( ...args : any [ ] ) => any ) ) => DecorationMethod < Server > , options : { apply ?: boolean | undefined , extend : true } ) : void ;
324
+ decorate ( type : 'server' , property : DecorateName , method : DecorationMethod < Server > , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
325
+ decorate ( type : 'server' , property : DecorateName , value : ( existing : ( ( ...args : any [ ] ) => any ) ) => any , options : { apply ?: boolean | undefined , extend : true } ) : void ;
326
+ decorate ( type : 'server' , property : DecorateName , value : any , options ?: { apply ?: boolean | undefined , extend ?: boolean | undefined } ) : void ;
320
327
321
328
/**
322
329
* Used within a plugin to declare a required dependency on other plugins where:
0 commit comments