Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import statement #297

Open
lamodots opened this issue Jul 21, 2024 · 1 comment
Open

import statement #297

lamodots opened this issue Jul 21, 2024 · 1 comment

Comments

@lamodots
Copy link

It will be nice if i can update doc to show how to do ES6 import of this great package

@francis-Paul-code
Copy link

Should already be able to do this, simply install the type declarations and then import

npm i morgan @types/morgan

// server file
import morgan from 'morgan';

worked for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants