typescript: error TS2305: '.../node_modules/sendgrid/index' has no exported member 'SendGrid'

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Closed

@yinso

Description

Issue Summary

Sendgrid version: 4.7.1

Trying to make use of sendgrid in typescript. Cannot make use of the SendGrid namespace.

Would be great to have some working examples of using typescript with sendgrid.

Steps to Reproduce

  1. clone sendgrid-ts-demo repo, `
  2. npm install
  3. npm test (which runs tsc)
  4. error

Technical details:

  • sendgrid-nodejs Version: 4.7.1
  • Node.js Version: 5.5.0
  • Typescript Version: 1.8.10, 2.0.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions