I am using a Qraphql code generator that generates the schema types in typescript and would like to use those types inside the model.
My question is how can I use a typescript type inside the Mobx state tree model like this
type AssignedFilter = {
id: number
name: string
email: string
}
const SearchStore = types
.model('Search', {
text: '',
assigned: // how to use the AssignedFilter type here??
})