Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit

Permalink
fixup! update schema and error types
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Pilar <[email protected]>
  • Loading branch information
Tomas Pilar committed Jan 10, 2024
1 parent 75cc536 commit fa16dc8
Show file tree
Hide file tree
Showing 4 changed files with 3,256 additions and 3,219 deletions.
4 changes: 2 additions & 2 deletions src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import createClient, { FetchOptions, FetchResponse } from 'openapi-fetch';

import { FilterKeys } from '../utils/types.js';

import { paths } from './schema.js';
import { components, paths } from './schema.js';

export type ApiClient = ReturnType<typeof createClient<paths>>;

Expand All @@ -24,4 +24,4 @@ export type ApiClientResponse<
>[0],
> = FetchResponse<FilterKeys<paths[Path], Lowercase<Method>>>;

export type ApiError = any; // TODO components['schemas']['BaseErrorResponse'];
export type ApiError = components['schemas']['BaseErrorResponse'];
Loading

0 comments on commit fa16dc8

Please sign in to comment.