mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-06-11 09:06:15 -04:00
This PR adjusts the configuration to the `openapi-typescript` generation to export the schema types directly and allow importing them directly in the frontend code: <img width="645" height="73" alt="image" src="https://github.com/user-attachments/assets/75ddb995-ac16-4154-842d-fd85d4bdea46" /> Alternatively without the `--root-types-no-schema-prefix` option, the schemas would all be prefixed with "Schema" like `SchemaMetaDataProviderSearchResult` which could be safer, if there are type collisions. LMK what's preferred. --- Checklist: - [x] run `npm run openapi` to re-generate the `api.d.ts` - [x] run `npm run lint` - [x] run `npm run format` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Simplified and standardised TypeScript typings across the web app by switching to concise public type aliases for API schemas (e.g. Movie, Show, Episode, User, Notification, etc.), improving code clarity and consistency across components and pages; purely type-level changes with no runtime behaviour impact. <!-- end of auto-generated comment: release notes by coderabbit.ai -->