source: trip-planner-front/node_modules/map-age-cleaner/dist/index.d.ts@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 713 bytes
Line 
1interface Entry {
2 [key: string]: any;
3}
4interface MaxAgeEntry extends Entry {
5 maxAge: number;
6}
7/**
8 * Automatically cleanup the items in the provided `map`. The property of the expiration timestamp should be named `maxAge`.
9 *
10 * @param map - Map instance which should be cleaned up.
11 */
12export default function mapAgeCleaner<K = any, V extends MaxAgeEntry = MaxAgeEntry>(map: Map<K, V>): any;
13/**
14 * Automatically cleanup the items in the provided `map`.
15 *
16 * @param map - Map instance which should be cleaned up.
17 * @param property - Name of the property which olds the expiry timestamp.
18 */
19export default function mapAgeCleaner<K = any, V = Entry>(map: Map<K, V>, property: string): any;
20export {};
Note: See TracBrowser for help on using the repository browser.