UNPKG

@data-client/core

Version:

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

20 lines 783 B
import type { EndpointInterface, ResolveType } from '@data-client/normalizr'; import type { SetResponseAction } from '../../types.js'; import { EndpointUpdateFunction } from '../types.js'; export declare function createSetResponse<E extends EndpointInterface & { update?: EndpointUpdateFunction<E>; }>(endpoint: E, options: { args: readonly [...Parameters<E>]; response: Error; fetchedAt?: number; error: true; }): SetResponseAction<E>; export declare function createSetResponse<E extends EndpointInterface & { update?: EndpointUpdateFunction<E>; }>(endpoint: E, options: { args: readonly [...Parameters<E>]; response: ResolveType<E>; fetchedAt?: number; error?: false; }): SetResponseAction<E>; //# sourceMappingURL=createSetResponse.d.ts.map