UNPKG

@data-client/core

Version:

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

7 lines 431 B
import type { EndpointInterface } from '@data-client/normalizr'; import type { OptimisticAction } from '../../types.js'; import type { 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