UNPKG

@data-client/normalizr

Version:

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

6 lines (4 loc) 198 B
import type { Schema, EntityInterface } from './interface.js'; export function isEntity(schema: Schema): schema is EntityInterface { return schema !== null && (schema as any).pk !== undefined; }