Generate typescript types from the schema files of a realm app?

How can I get the typescript types of a collection, mainly not just for type checking but to leverage the benefits of the editor’s intellisense without forcing me to rewrite the entire schema in typescript? I’m using not just Atlas but also realm mongodb. Is there a tool out there that can help me build the types from the schema files of a realm app?

Thanks!

1 Like

Hello @Demian_Caldelas1, you can use the Realm Object Models inside the Realm SDKs menu. Just make sure to select Typescript in the language selector (on the top right side of the screen).

image

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.