Open ValeriyDP opened 7 years ago
Took me a little bit, but I think I get it. Are you saying that you expect to be able to do
import expressWinston from 'express-winston';
and instead have to do
const expressWinston = require('express-winston');
?
I'm open to a PR for a .d.ts
file in this project (looks like you can do it in project, as here: http://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html). Or anyone could do it on http://definitelytyped.org.
This is something I might end up getting to myself, but it won't be my highest priority, considering that it does work with a require
(and the usage for this module is so limited that the lack of types won't much influence the rest of your application).
I'm using TypeScript and my app works with:
import * as expressWinston from 'express-winston'
Solved with
const expressWinston = require('express-winston');
But I believe that this has to be added to http://definitelytyped.org/
Thanks