Server : Apache System : Linux ks5.tuic.fr 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 User : pragmatice ( 1003) PHP Version : 8.2.24 Disable Function : NONE Directory : /home/pragmatice/pragmaclasse_recette/node_modules/map-age-cleaner/dist/ |
interface Entry { [key: string]: any; } interface MaxAgeEntry extends Entry { maxAge: number; } /** * Automatically cleanup the items in the provided `map`. The property of the expiration timestamp should be named `maxAge`. * * @param map - Map instance which should be cleaned up. */ export default function mapAgeCleaner<K = any, V extends MaxAgeEntry = MaxAgeEntry>(map: Map<K, V>): any; /** * Automatically cleanup the items in the provided `map`. * * @param map - Map instance which should be cleaned up. * @param property - Name of the property which olds the expiry timestamp. */ export default function mapAgeCleaner<K = any, V = Entry>(map: Map<K, V>, property: string): any; export {};