You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We're integrating with Nylas and in our typescript front end code want to make use of types for the Nylas data. Turns out all the types are defined in the nylas-nodejs repo, but are inlined in the modes (example: https://github.com/nylas/nylas-nodejs/blob/main/src/models/event.ts#L35). We do not want to include the nodejs package for our front end code when we just need the types.
Describe the solution you'd like
It would be great to have a nylas maintained @types (via https://github.com/DefinitelyTyped/DefinitelyTyped or your own) package which defines all the typescript types. This could be used in your nodejs app, or front end code.
Describe alternatives you've considered
Currently I've just copied and pasted the types into my own types file as needed. It works, but will be prone to getting outdated if Nylas's types ever change.
TypeScript has type-only imports that are always fully erased so that there is no remnant of them at runtime. You should be able to get the same effect as a @types/ package by using import type ... from 'nylas' and making nylas a devDependency.
Is your feature request related to a problem? Please describe.
We're integrating with Nylas and in our typescript front end code want to make use of types for the Nylas data. Turns out all the types are defined in the
nylas-nodejs
repo, but are inlined in the modes (example: https://github.com/nylas/nylas-nodejs/blob/main/src/models/event.ts#L35). We do not want to include the nodejs package for our front end code when we just need the types.Describe the solution you'd like
It would be great to have a nylas maintained
@types
(via https://github.com/DefinitelyTyped/DefinitelyTyped or your own) package which defines all the typescript types. This could be used in your nodejs app, or front end code.Describe alternatives you've considered
Currently I've just copied and pasted the types into my own types file as needed. It works, but will be prone to getting outdated if Nylas's types ever change.
Additional context
Example file:
The text was updated successfully, but these errors were encountered: