jellydn / untypeable-wretch-demo

This is a demo project that showcases how to use the Untypeable library with Wretch to make API requests to JsonPlaceholder and display the data on a webpage.
https://untypeable-demo.productsway.com/
MIT License
3 stars 2 forks source link

add runtime type checking with zod #5

Closed github-actions[bot] closed 1 year ago

github-actions[bot] commented 1 year ago

Initialize untypeable

https://api.github.com/jellydn/untypeable-wretch-demo/blob/697369359a9dae3d09e06ad01c7a4fcacc1ff692/src/api-client.ts#L4


import { createTypeLevelClient, initUntypeable } from "untypeable";
import wretch from "wretch";

// TODO: add runtime type checking with zod
// Initialize untypeable
const u = initUntypeable();
github-actions[bot] commented 1 year ago

Closed in f22201850aa9e3b4fba6a0eeadd1bcc7b10e60f7