UNPKG

ts-japi

Version:

A highly-modular (typescript-friendly)-framework agnostic library for serializing data to the JSON:API specification

16 lines 519 B
import { SingleOrArray, nullish } from '../types/global.types'; export interface CacheOptions<DataType> { /** * The maximum amount of documents that can be stored before erasure. * * @defaultValue `10` */ limit: number; /** * The method to use in determining data equality * * @defaultValue `Object.is` */ resolver(storedData: SingleOrArray<DataType> | nullish, newData: SingleOrArray<DataType> | nullish): boolean; } //# sourceMappingURL=cache.interface.d.ts.map