Added pttl to typings (#36637)

This commit is contained in:
Thewsomeguy 2019-07-08 12:13:07 -05:00 committed by Andrew Branch
parent ed9e43134c
commit 28fe7c4ca8
2 changed files with 10 additions and 0 deletions

View File

@ -416,6 +416,9 @@ declare namespace IORedis {
ttl(key: KeyType, callback: (err: Error, res: number) => void): void;
ttl(key: KeyType): Promise<number>;
pttl(key: KeyType, callback: (err: Error, res: number) => void): void;
pttl(key: KeyType): Promise<number>;
persist(key: KeyType, callback: (err: Error, res: 0 | 1) => void): void;
persist(key: KeyType): Promise<0 | 1>;
@ -779,6 +782,8 @@ declare namespace IORedis {
ttl(key: KeyType, callback?: (err: Error, res: number) => void): Pipeline;
pttl(key: KeyType, callback: (err: Error, res: number) => void): Pipeline;
persist(key: KeyType, callback?: (err: Error, res: 0 | 1) => void): Pipeline;
slaveof(host: string, port: number, callback?: (err: Error, res: string) => void): Pipeline;

View File

@ -407,6 +407,9 @@ declare namespace IORedis {
ttl(key: string, callback: (err: Error, res: number) => void): void;
ttl(key: string): Promise<number>;
pttl(key: string, callback: (err: Error, res: number) => void): void;
pttl(key: string): Promise<number>;
persist(key: string, callback: (err: Error, res: 0 | 1) => void): void;
persist(key: string): Promise<0 | 1>;
@ -734,6 +737,8 @@ declare namespace IORedis {
ttl(key: string, callback?: (err: Error, res: number) => void): Pipeline;
pttl(key: string, callback?: (err: Error, res: number) => void): Pipeline;
persist(key: string, callback?: (err: Error, res: 0 | 1) => void): Pipeline;
slaveof(host: string, port: number, callback?: (err: Error, res: string) => void): Pipeline;