mirror of
https://github.com/ivuorinen/cinode-api.git
synced 2026-01-26 03:04:03 +00:00
13 lines
254 B
Bash
Executable File
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"
|