Skip to content

Schema methods in Getting Started/Overview (Typescript) #841

@zackrdavis

Description

@zackrdavis

First of all, thank you for Mirage! It fits my needs exactly. MSW requires an HTTPS connection to host, which was a time-suck and finally a dealbreaker for our S3-hosted staging.

I hit some confusion when I got to the section on dynamic route handlers, specifically:
schema.movies.all() versus schema.all('movie')

The first gave me a TS error, the second did not, and because I'm new to Typescript it held me up for a little while. Maybe worth a change to the docs or a change to the types (which I wouldn't know how to do).

Thanks again for a very helpful library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions