Files
cinode-api/generate.sh
2023-05-04 15:42:41 +03:00

13 lines
254 B
Bash
Executable File

#!/usr/bin/env bash
#
# Generate Cinode TypeScript type definitions
SRC="https://api.cinode.com/swagger/v0.1/swagger.json"
DEST="$(pwd)/src/cinode.d.ts"
npx openapi-typescript \
"$SRC" \
--export-type \
--path-params-as-type \
--output "$DEST"