json: rm trailing spaces

This commit is contained in:
ochafik 2024-03-11 00:27:50 +00:00
parent 0e9494183b
commit 11813a6b0a
4 changed files with 21 additions and 22 deletions

View file

@ -17,12 +17,11 @@ SCHEMA_FILE="$TMPDIR/schema.json"
echo "export type MyType = $type" > "$DTS_FILE"
# This is a fork of typescript-json-schema, actively maintained as of March 2024:
# https://github.com/vega/ts-json-schema-generator
npx ts-json-schema-generator --no-top-ref --path "$DTS_FILE" --type MyType -e none | tee "$SCHEMA_FILE" >&2
# Not actively maintained:
# Alternative, not actively maintained as of March 2024:
# https://github.com/YousefED/typescript-json-schema
# npx typescript-json-schema --defaultProps --required "$DTS_FILE" MyType | tee "$SCHEMA_FILE" >&2