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

Typescript Interfaces #6287

Open
saniyusuf opened this issue Nov 27, 2023 · 2 comments
Open

Typescript Interfaces #6287

saniyusuf opened this issue Nov 27, 2023 · 2 comments

Comments

@saniyusuf
Copy link

saniyusuf commented Nov 27, 2023

Problem

I use the realm web, but it's challenging to infer the build-in return types. For example, if I want to decorate a Promise to return the same return type of the findOne method, it's near impossible not as the current version does not support that.

Solution

This should work because users should be able to import the return types for all operations. For example, I should be able to get an interface to use as a return type for an UpdateOne method. It would also be nice to have the _id object ID as an interface to.

Alternatives

No response

How important is this improvement for you?

Would be a major improvement

Feature would mainly be used with

Atlas App Services: Auth or Functions etc

@kneth
Copy link
Contributor

kneth commented Dec 1, 2023

@saniyusuf

Thank you for your suggestion. We have an upcoming project (starting soonish) which is about enhancing the data access. We can use your suggestion as part of the design.

@saniyusuf
Copy link
Author

@kneth this is perfect. I actually think the Interfaces are already present internally however, I just don't think they are exported for use. If you can point me to that folder, I can manually export them in a file that can me made available for all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants