0.9.0 • Published 2 months ago
@jampot/cli v0.9.0
@jampot/cli
Fetch page queries type-safely with TypeScript SDK
Install
$ yarn add @jampot/cli
Usage
$ yarn jampot generate -e "https://jampot.com" -o ./myGeneratedSdk.ts
import { jampot } from './myGeneratedSdk.ts
jampot.fetch(
// Type-safe page query endpoint
"...",
// Type-safe page query variables
{})
// Type-safe page query response
.then((response) => {
// ...
})