nylas / nylas-nodejs

A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.
MIT License
166 stars 116 forks source link

Re-export all models as a top-level export #534

Closed mrashed-dev closed 5 months ago

mrashed-dev commented 5 months ago

Description

This PR re-exports all models in the entrypoint nylas.ts file, allowing users to easily import all models; e.g:

import Nylas, { WebhookTriggers } from "nylas";

The nylas entrypoint exports everything fro models/index.ts, which is a file that's generated by script in the prebuild step of npm build.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.