mswjs / source

Generate MSW request handlers from various sources (HAR files, OpenAPI documents, etc).
https://source.mswjs.io
134 stars 5 forks source link

Support ts-rest #56

Open spence-novata opened 2 months ago

spence-novata commented 2 months ago

Description

Generate handlers out of a ts-rest contract

import { fromTsRest } from '@mswjs/source/ts-rest'

fromTsRest(input)

I'm not sure if this issue should be on the Source repo or the ts-rest one. I'm taking the lead of the one for trpc.