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
I am trying to use with typescript below code is giving me typescript warning that TS2349: This expression is not callable.
If I import package as import {MongooseMorgan} from "mongoose-morgan"; the warning goes away but then app crashes at run time saying ''import {MongooseMorgan} from "mongoose-morgan""
I am trying to use with typescript below code is giving me typescript warning that TS2349: This expression is not callable.
If I import package as
import {MongooseMorgan} from "mongoose-morgan";
the warning goes away but then app crashes at run time saying ''import {MongooseMorgan} from "mongoose-morgan""Can you add documentation regarding typescript ?
export default MongooseMorgan({ connectionString: config.get('db.uri'), collection: "error_logs" }, { skip: (req: Request, res: Response) => { return res.statusCode < 400 } }, 'combined');
The text was updated successfully, but these errors were encountered: