Closed sveisvei closed 4 months ago
Thanks for reporting! Would you like to send a Pull Request to address this issue? Remember to add unit tests.
@sveisvei I think you can use the import * syntax instead:
import * as HapiPino from '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.
I'm not actively using this module nor typescript, so I'd defer to your best recommendation.
Will give type error
While getting no typescript error if using require: