Writing Realm functions in TS

Hi!
I’m trying to write Realm functions with TS.
Are there official typings for things like context available?
I tried to reuse the typings for interacting with mongodb from the mongodb package. It kinda works, but there are slight differences between how mongodb node driver works and how Realm’s mongodb connection works so you can’t really trust those typings.
An ideal solution would have been native TS support, but I guess that is not planned any time soon?

Also would be nice to have some kind of set of tools for local development of Realm functions, e.g. some kind of Docker container that could emulate Realm with local database or something.

3 Likes