UNPKG

@data-client/normalizr

Version:

Normalizes and denormalizes JSON according to schema for Redux and Flux applications

11 lines (10 loc) 607 B
import type { Schema, SchemaSimple, IQueryDelegate } from './interface.js'; import type { NormalizeNullable } from './types.js'; /** * Build the result parameter to denormalize from schema alone. * Tries to compute the entity ids from params. */ export default function buildQueryKey(delegate: IQueryDelegate): <S extends Schema>(schema: S, args: readonly any[]) => NormalizeNullable<S>; export declare function canQuery(schema: Schema): schema is Pick<SchemaSimple, 'queryKey'>; export declare function validateQueryKey(queryKey: unknown): boolean; //# sourceMappingURL=buildQueryKey.d.ts.map