mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Add typings for rate-limit-redis * Limit rate-limit-redis to TS 2.3 b/c of express-rate-limit requirement * Bump rate-limit-redis to TS 2.7
20 lines
569 B
TypeScript
20 lines
569 B
TypeScript
// Type definitions for rate-limit-redis 1.6
|
|
// Project: https://github.com/wyattjoh/rate-limit-redis#readme
|
|
// Definitions by: Chris Suich <https://github.com/csuich2>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.7
|
|
|
|
import { RedisClient } from 'redis';
|
|
import { Store } from 'express-rate-limit';
|
|
|
|
interface RedisStoreOptions {
|
|
expiry?: number;
|
|
prefix?: string;
|
|
resetExpiryOnChange?: boolean;
|
|
client?: RedisClient;
|
|
}
|
|
|
|
declare function RedisStore(options?: RedisStoreOptions): Store;
|
|
|
|
export = RedisStore;
|