diff --git a/src/types.d.ts b/src/types.d.ts index fa9853e..9c420b3 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -27,17 +27,10 @@ export type CreateMethod = { format?: keyof Omit
, }; -type CreateHttpClientOptions = { +export type CreateHttpClientOptions = { baseUrl?: string; middleware?: Middleware; }; -type ErrorText = 'ErrorText' | 'error_text'; -type ErrorCode = 'ErrorCode' | 'error_code'; -type ErrorFields = ErrorText | ErrorCode; -type ErrorBody = { - [key in ErrorFields]?: string -}; - type ResponseFormats = keyof Omit; export type FormattedResponse = ReturnType | Record