Skip to content
← Dist
typescript+match-fetchtypescriptmatch-fetch

match-fetch consumer examples

How a TypeScript app uses @danrabydev/match-fetch: UserApi extends ApiBase, exhaustive FetchResult.match, and getJson. EXAMPLE_API_TOKEN is an optional env name; example.com is not a live API.

jsonapp/package.json
{
  "name": "match-fetch-consumer",
  "private": true,
  "type": "module",
  "dependencies": {
    "@danrabydev/match": "^0.3.0",
    "@danrabydev/match-fetch": "^0.7.1"
  }
}