mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
Make Error.code a string
The code property is a string, not a number. https://github.com/tediousjs/tedious/search?utf8=%E2%9C%93&q=ETIMEOUT&type=
This commit is contained in:
8
types/tedious/index.d.ts
vendored
8
types/tedious/index.d.ts
vendored
@@ -554,18 +554,18 @@ export declare class Connection extends events.EventEmitter {
|
||||
* Error emitted by Connection class 'error' event
|
||||
*/
|
||||
export declare class ConnectionError extends Error {
|
||||
constructor(message?: string, code?: number);
|
||||
constructor(message?: string, code?: string);
|
||||
|
||||
public message: string;
|
||||
public code: number;
|
||||
public code: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Error emitted by Request class
|
||||
*/
|
||||
export declare class RequestError extends Error {
|
||||
constructor(message?: string, code?: number);
|
||||
constructor(message?: string, code?: string);
|
||||
|
||||
public message: string;
|
||||
public code: number;
|
||||
public code: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user