refactor(frontend): extract extractErrorCode() helper to eliminate repeated type assertions #649

Merged
marcel merged 5 commits from feat/issue-113-extract-error-code into main 2026-05-21 09:31:54 +02:00
Showing only changes of commit eb69135f2c - Show all commits

View File

@@ -26,7 +26,6 @@ export function createApiClient(fetch: typeof globalThis.fetch) {
export interface ApiError {
code?: string;
message?: string;
}
export function extractErrorCode(error: unknown): string | undefined {