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

Fix types for export on ESModule #2211

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ani3llyon
Copy link

Fix types for export in file index.d.ts

  • use typescript
  • set "type": "module" in package.json or set extention file to .mts
import nodemon from 'nodemon';

// no show error on ide and also when compile the code
// but error when running
nodemon.default();

// show error on ide and also when compile the code
// but no error when running
nodemon();

Copy link

netlify bot commented Jun 21, 2024

Deploy Preview for nodemon ready!

Name Link
🔨 Latest commit f4501b3
🔍 Latest deploy log https://app.netlify.com/sites/nodemon/deploys/6675a32ce05b230008b57587
😎 Deploy Preview https://deploy-preview-2211--nodemon.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

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

Successfully merging this pull request may close these issues.

None yet

1 participant