DefinitelyTyped/types/rate-limit-redis/index.d.ts
Chris e72d59512c Add typings for rate-limit-redis (#39036)
* 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
2019-10-14 16:47:14 -07:00

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;