1
0
Fork 0
mirror of https://github.com/s-frick/effigenix.git synced 2026-03-28 17:19:56 +01:00

fix(tui): TypeScript-Fehler durch strikte generierte OpenAPI-Typen beheben

RoleDTO auf generierten Typ umgestellt, exactOptionalPropertyTypes-Konflikte
gelöst, Null-Checks für nullable AddressResponse ergänzt und Enum-Casts
für string-basierte SalesUnit-Felder hinzugefügt.
This commit is contained in:
Sebastian Frick 2026-02-25 17:34:14 +01:00
parent 7d721f9ef0
commit c89ee359d1
9 changed files with 31 additions and 26 deletions

View file

@ -3,13 +3,10 @@
*/
import type { AxiosInstance } from 'axios';
import type { RoleDTO } from '@effigenix/types';
import { API_PATHS } from '@effigenix/config';
export interface RoleDTO {
id: string;
name: string;
permissions: string[];
}
export type { RoleDTO };
export function createRolesResource(client: AxiosInstance) {
return {