UNPKG

soccer-go

Version:

Soccer CLI for stats and results.

14 lines (13 loc) 381 B
import CacheItem from './CacheItem'; type Data = Map<string, CacheItem>; export default class Cache { private file; private data; constructor(dir: string); add: (id: string, data: CacheItem['data']) => Data; remove: (id: string) => boolean; get: (id: string) => CacheItem | undefined; has: (id: string) => boolean; persist: () => void; } export {};