// Type definitions for react-cache 2.0 // Project: https://github.com/facebook/react/tree/master/packages/react-cache, https://github.com/facebook/react // Definitions by: Spencer Miskoviak // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface Resource { read(key: Input): Value; preload(key: Input): void; } export function unstable_createResource( fetch: (input: Input) => PromiseLike, maybeHashInput?: (input: Input) => string | number, ): Resource;