We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we have typescript support in the basic example show in the docs?
import { createServer, Model } from "miragejs" export function makeServer({ environment = "development" } = {}) { let server = createServer({ environment, models: { user: Model, }, seeds(server) { server.create("user", { name: "Bob" }) server.create("user", { name: "Alice" }) }, routes() { this.namespace = "api" this.get("/users", (schema) => { return schema.users.all() }) }, }) return server } ´´´ when I tried to set the Model it doesn.t seems to be working.. ![image](https://github.com/miragejs/examples/assets/12377432/a34b4166-a3dc-44d5-909a-8f8497569c9c)
The text was updated successfully, but these errors were encountered:
using
models: { user: Model.extend<Partial<User>>({}), },
Sorry, something went wrong.
No branches or pull requests
How can we have typescript support in the basic example show in the docs?
The text was updated successfully, but these errors were encountered: