mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-01 15:50:13 +00:00
Allows for TTL function (#36235)
This commit is contained in:
committed by
Benjamin Lichtman
parent
468ea3b927
commit
04b665f71a
6
types/cache-manager/index.d.ts
vendored
6
types/cache-manager/index.d.ts
vendored
@@ -4,7 +4,11 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
export interface CachingConfig {
|
||||
ttl: number;
|
||||
ttl: number | TtlFunction;
|
||||
}
|
||||
|
||||
export interface TtlFunction {
|
||||
(result: any): number;
|
||||
}
|
||||
|
||||
export interface StoreConfig extends CachingConfig {
|
||||
|
||||
Reference in New Issue
Block a user