Merge pull request 'UI/Install workflow: integrate api until hardware report' (#4646) from ui-more into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4646
This commit is contained in:
hsjobeki
2025-08-08 19:23:00 +00:00
10 changed files with 274 additions and 176 deletions

View File

@@ -92,6 +92,10 @@
# Retrieve python API Typescript types
python api.py > $out/API.json
json2ts --input $out/API.json > $out/API.ts
# Substitute '{}' with 'Record<string, never>' because typescript is like that
# It treats it not as the type of an empty object, but as non-nullish.
# Should be fixed in json2ts: https://github.com/bcherny/json-schema-to-typescript/issues/557
sed -i -e 's/{}/Record<string, never>/g' $out/API.ts
# Retrieve python API Typescript types
# delete the reserved tags from typechecking because the conversion library doesn't support them