Kashuab / mobx-depot

Scaffold MobX-powered models, queries and mutations with your GraphQL schema.
https://mobx-depot.dev
MIT License
8 stars 0 forks source link

Clean up RootStore types #9

Open KashubaK opened 1 year ago

KashubaK commented 1 year ago

I slapped the RootStore together pretty quickly and ran into a lot of type errors while implementing the resolve method. These type errors need to be better reconciled

KashubaK commented 1 year ago

Screen Shot 2023-02-15 at 11 21 23 AM

RootStore.resolve now returns a DeepResolved so that any object with a __typename gets correctly resolved to its corresponding model. However the implementation itself still has some concerns regarding types