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:
David Stephens 2020-03-27 15:48:54 +00:00 committed by GitHub
parent e1d9e43428
commit 9bc40339dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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 {

View File

@ -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 {