mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 08:58:23 +08:00
Fix ratelimiter tests
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
|
||||
/// <reference path="./ratelimiter.d.ts" />
|
||||
|
||||
import * as redis from 'redis';
|
||||
import * as Limiter from 'ratelimiter';
|
||||
|
||||
let id: string;
|
||||
let db: redis.RedisClient;
|
||||
declare let id: string;
|
||||
declare let db: redis.RedisClient;
|
||||
let limit = new Limiter({ id: id, db: db });
|
||||
|
||||
const str: string = limit.inspect();
|
||||
|
||||
Reference in New Issue
Block a user