mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added pttl to typings (#36637)
This commit is contained in:
parent
ed9e43134c
commit
28fe7c4ca8
5
types/ioredis/index.d.ts
vendored
5
types/ioredis/index.d.ts
vendored
@ -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;
|
||||
|
||||
5
types/ioredis/v3/index.d.ts
vendored
5
types/ioredis/v3/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user