Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

mrashed-dev
Copy link
Collaborator

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.

models/index.ts will contain all of the exported models, which will be re-exported by the main nylas.ts
@mrashed-dev mrashed-dev merged commit ede9b1a into main Feb 7, 2024
4 checks passed
@mrashed-dev mrashed-dev deleted the AV-3232-node-add-a-top-level-export-for-all-models branch February 7, 2024 20:21
@mrashed-dev mrashed-dev mentioned this pull request Feb 12, 2024
mrashed-dev added a commit that referenced this pull request Feb 12, 2024
# Changelog
* Added support for `/v3/connect/tokeninfo` endpoint (#536)
* Models can now directly be imported from the top-level `nylas` package (#534)
* Fixed inaccuracies in event and webhook models (#535)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants