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!
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()versusschema.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!