f
readJsonCache<T>(): Task<T | null, never>
filePath: string,
isValid: (parsed: unknown) => parsed is T
Reads a JSON cache file and hands back its contents, or null.
Usage
import * as mod from "lib/utils/read-json-cache.ts";