-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(hapi): Widen type definitions #12710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
initialize(): Promise<void>; | ||
register(plugins: Plugin<any> | Array<Plugin<any>>, options?: Record<string, any>): Promise<void>; | ||
register(plugins: Plugin<any>, options?: Record<string, any>): Promise<void>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, is this not tightening the types? used to accept a plugin or an array of plugins, not we only accept a single plugin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just saw we cannot do this anyway as hapi has 5 different method overwrites and no union type. I am going to change this to any
as well!
fixes #12703