mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add 'command' and 'args' properties to RedisError class (#43356)
* Add properties to RedisError * Update ts3.1 as well Co-authored-by: David Stephens <david.2.stephens@bt.com>
This commit is contained in:
parent
e1d9e43428
commit
9bc40339dd
5
types/redis/index.d.ts
vendored
5
types/redis/index.d.ts
vendored
@ -1248,7 +1248,10 @@ export function createClient(options?: ClientOpts): RedisClient;
|
||||
|
||||
export function print(err: Error | null, reply: any): void;
|
||||
|
||||
export class RedisError extends Error { }
|
||||
export class RedisError extends Error {
|
||||
command: string;
|
||||
args?: any[];
|
||||
}
|
||||
export class ReplyError extends RedisError { }
|
||||
export class AbortError extends RedisError { }
|
||||
export class ParserError extends RedisError {
|
||||
|
||||
5
types/redis/ts3.1/index.d.ts
vendored
5
types/redis/ts3.1/index.d.ts
vendored
@ -1230,7 +1230,10 @@ export function createClient(options?: ClientOpts): RedisClient;
|
||||
|
||||
export function print(err: Error | null, reply: any): void;
|
||||
|
||||
export class RedisError extends Error { }
|
||||
export class RedisError extends Error {
|
||||
command: string;
|
||||
args?: unknown[];
|
||||
}
|
||||
export class ReplyError extends RedisError { }
|
||||
export class AbortError extends RedisError { }
|
||||
export class ParserError extends RedisError {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user