This is a demo repo showing how to implement a typesafe API without code generation or GraphQL. It is a companion to a blog post I wrote, check it out for a detailed walkthrough of how this approach works:
https://colinhacks.com/essays/graphql-is-obsolete
git clone git@github.com:colinhacks/typesafe-api-no-graphql.git
cd typesafe-api-no-graphql
yarn
(install dependencies)yarn dev