mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 06:17:04 +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:
co-authored by
David Stephens
parent
e1d9e43428
commit
9bc40339dd
Vendored
+4
-1
@@ -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 {
|
||||
|
||||
Vendored
+4
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user