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 Apr 19, 2024
1 parent b983f62 commit d0a2760
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 @@ -10,7 +10,7 @@ type ResponseSpecFunc = <T = any>(
headers?: any
) => 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 d0a2760

Please sign in to comment.