You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Schmervice types in definitely typed are a good starting point so I ported them and have added tsd type declaration tests since I prefer making explicit type assertions in tests.
I want to update the the decorator functions the to accept a string or true rather than an optional boolean since the function also take string arguments that correspond to namespaces. It would look something like the following
declare module '@hapi/hapi'{interfaceServer{/** * decorations can be passed a plugin namespace or a boolean to return all registered services * @param all */services: (all?: true|string)=>RegisteredServices;}interfaceRequest{services: (all?: true|string)=>RegisteredServices;}interfaceResponseToolkit{services: (all?: true|string)=>RegisteredServices;}}
The text was updated successfully, but these errors were encountered:
Schmervice types in definitely typed are a good starting point so I ported them and have added tsd type declaration tests since I prefer making explicit type assertions in tests.
I want to update the the decorator functions the to accept a string or true rather than an optional boolean since the function also take string arguments that correspond to namespaces. It would look something like the following
The text was updated successfully, but these errors were encountered: