Skip to content

Commit

Permalink
chore: allow any string along with literal error names
Browse files Browse the repository at this point in the history
  • Loading branch information
GerkinDev committed Oct 30, 2024
1 parent 1000937 commit cfe6b11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ type ResponseSpecFunc = <T = any>(
headers?: AxiosHeaders
) => MockAdapter;

type NetErr = 'ENOTFOUND' | 'ECONNREFUSED' | 'ECONNRESET' | 'ECONNABORTED' | 'ETIMEDOUT'
type NetErr = 'ENOTFOUND' | 'ECONNREFUSED' | 'ECONNRESET' | 'ECONNABORTED' | 'ETIMEDOUT' | (string & Record<never, never>)

declare namespace MockAdapter {
export interface RequestHandler {
Expand Down

0 comments on commit cfe6b11

Please sign in to comment.