Skip to content

Comments

Fix types for export on ESModule#2211

Merged
remy merged 1 commit intoremy:mainfrom
ani3llyon:fix/dts-export
Sep 20, 2024
Merged

Fix types for export on ESModule#2211
remy merged 1 commit intoremy:mainfrom
ani3llyon:fix/dts-export

Conversation

@ani3llyon
Copy link
Contributor

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();

@netlify
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.

@remy remy merged commit 9b0606a into remy:main Sep 20, 2024
@github-actions
Copy link

🎉 This PR is included in version 3.1.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@akantic
Copy link

akantic commented Jan 21, 2025

This error is present again in 3.1.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants