UNPKG

@data-client/core

Version:

Async State Management without the Management. REST, GraphQL, SSE, Websockets, Fetch

10 lines (9 loc) 432 B
import { EndpointInterface } from '@data-client/normalizr'; import { OptimisticAction } from '../../types.js'; import { EndpointUpdateFunction } from '../types.js'; export declare function createOptimistic<E extends EndpointInterface & { update?: EndpointUpdateFunction<E>; }>(endpoint: E, args: readonly [ ...Parameters<E> ], fetchedAt: number): OptimisticAction<E>; //# sourceMappingURL=createOptimistic.d.ts.map