UNPKG

@data-client/core

Version:

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

25 lines (24 loc) 826 B
import { EndpointInterface, ResolveType } from '@data-client/normalizr'; import { 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