yinzerflow 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +2 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Redis } from 'ioredis';
|
|
2
|
-
import {
|
|
2
|
+
import { createClient } from 'redis';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Generic types for handler callbacks that define the structure of request data
|
|
@@ -1647,7 +1647,7 @@ export interface BaseStoreConfig {
|
|
|
1647
1647
|
/** Type of the store @default 'memory' */
|
|
1648
1648
|
type: RateLimitStoreType;
|
|
1649
1649
|
}
|
|
1650
|
-
export type RedisClient = Redis |
|
|
1650
|
+
export type RedisClient = Redis | ReturnType<typeof createClient>;
|
|
1651
1651
|
export interface MemoryStoreConfig extends BaseStoreConfig {
|
|
1652
1652
|
type: "memory";
|
|
1653
1653
|
}
|
package/package.json
CHANGED