ts / scripts / gen-types.sh
33 words
1
2
3
4
5
6
#!/bin/sh
# Regenerates src/generated/api.ts from spec/openapi.json. Run after refreshing
# the spec; the output is committed so consumers never need the generator.
set -e
cd "$(dirname "$0")/.."
npx openapi-typescript spec/openapi.json -o src/generated/api.ts --alphabetize

static mirror of HEAD · about · clone: git clone https://ird.cod-sursa.ro/ts.git