gradroots-api-types
v1.0.0
Published
tRPC AppRouter type definitions for the gradroots API
Readme
gradroots-api-types
tRPC AppRouter type definitions for the gradroots API. Used by clients (e.g. gradroots-mobile) for type-safe API calls.
Publish (from this folder)
Log in to npm (once per machine):
npm loginUse your npm account; for a new package name you may need to ensure it’s available on npm.
Publish:
pnpm publish --no-git-checksOr from the gradroots root:
pnpm run build:api-types cd api-types && pnpm publish --no-git-checksAfter API changes: Bump
versioninpackage.json, run the build, then publish again.
Consuming
npm install gradroots-api-types
# or
pnpm add gradroots-api-typesimport type { AppRouter } from "gradroots-api-types";