0.10.1 • Published 11 months ago
@jampot/cli v0.10.1
@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) => {
// ...
})