Skip to content

Instantly share code, notes, and snippets.

@hyunbinseo
Last active February 6, 2025 06:35
Show Gist options
  • Save hyunbinseo/eb9c396d7d683e2b264160c7c67302be to your computer and use it in GitHub Desktop.
Save hyunbinseo/eb9c396d7d683e2b264160c7c67302be to your computer and use it in GitHub Desktop.
Import as ESM and CJS - with VS Code IntelliSense and type check
const { generateSgSendBody } = require('sendgrid-send');
generateSgSendBody;
import { generateSgSendBody } from 'sendgrid-send';
generateSgSendBody;
{
"compilerOptions": {
"checkJs": true,
"moduleResolution": "node16"
}
}
{
"dependencies": {
"sendgrid-send": "1.0.6"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment