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
No overload matches this call.
The last overload gave the following error.
Argument of type '{ plugin: Hapi.Plugin<pinoHapiPlugin.Options>; options: { level: pino.Level; logRequestComplete: boolean; prettyPrint: boolean; redact: string[]; ignorePaths: string[]; instance: pino.Logger<...> | undefined; }; }' is not assignable to parameter of type 'Plugin<any> | Plugin<any>[]'.
Object literal may only specify known properties, and 'plugin' does not exist in type 'Plugin<any> | Plugin<any>[]'.ts(2769)
index.d.ts(3886, 5): The last overload is declared here.
While getting no typescript error if using require:
@sveisvei I think you can use the import * syntax instead:
import*asHapiPinofrom'hapi-pino';
@mcollina I looked it up and seems like this is solvable by changing the export syntax, though from typescript docs seems like the change would not be backwards compatible (See docs). Not really sure we can simply change this without breaking existing consumers.
Will give type error
While getting no typescript error if using require:
The text was updated successfully, but these errors were encountered: