TLDR: Jump to Full Sample Coe to just see the final code.
I have a React + TypeScript + WatermelonDB project and want to:
- Create a typesafe association between related models.
- Observe a collection for changes so react components automitally re-render when items are added or removed.
I generally found WatermelonDB + TypeScript examples to be lacking, so I put together this brief example