mirror of
https://github.com/ivuorinen/cinode-api.git
synced 2026-02-03 14:43:42 +00:00
Initial commit
This commit is contained in:
12
generate.sh
Executable file
12
generate.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user