hapi icon indicating copy to clipboard operation
hapi copied to clipboard

Change `ServerRoute`'s `handler` type to & `HandlerDecorations`

Open hhanesand opened this issue 2 years ago • 1 comments

Seems like this type definition should use & and not | if the intent is to merge properties from HandlerDecorations into the lifecycle handler.

hhanesand avatar Oct 15 '23 20:10 hhanesand

I don't think it's the same thing, the handler can either be a method or an object matching a decoration (such as here), it can't be both.

Marsup avatar Jan 29 '24 10:01 Marsup