Skip to content

Commit d0a2760

Browse files
committed
chore: allow any string along with literal error names
1 parent b983f62 commit d0a2760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type ResponseSpecFunc = <T = any>(
1010
headers?: any
1111
) => MockAdapter;
1212

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

1515
declare namespace MockAdapter {
1616
export interface RequestHandler {

0 commit comments

Comments
 (0)