Skip to content

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

Closed
@yinso

Description

@yinso

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

    Labels

    status: help wantedrequesting help from the communitytype: questionquestion directed at the library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions