UNPKG

@mojir/lits

Version:

Lits is a Lisp dialect implemented in TypeScript

17 lines (16 loc) 442 B
import type { Ast } from '../parser/types'; export declare class Cache { private cache; private firstEntry; private lastEntry; private _size; private maxSize; constructor(maxSize: number | null); getContent(): Record<string, Ast>; get size(): number; get(key: string): Ast | undefined; clear(): void; has(key: string): boolean; set(key: string, value: Ast): void; private dropFirstEntry; }