Typescript

gstore works great with Typescript projects. You simply need to create a Type for your schema and pass it when instantiating your Schema.
Let see it with an example
The `UserType` interface is then read in many places
Non explicit schemas
It you want to allow other properties apart from those declared (see explicitOnly option in the Schema options), this is how you would create your Model:
Last updated
Was this helpful?