Abazhenov / express-async-handler

Async Error Handling Middleware for Express
572 stars 39 forks source link

Issue with typescript import #45

Open Motii1 opened 3 years ago

Motii1 commented 3 years ago

import asyncHandler from "express-async-handler" it seems that recommended import for typescript does not work. Instead I needed to import it like this import * as asyncHandler from "express-async-handler".

It would be good to not have wrong suggestion in readme.