Directly schemas
Directly's schemas and Normalizr
definitions.
Get started
npm install --save @directly/schemas
Somewhere in the codebase:
import { normalize } from 'normalizr';
import { schemas, definitions } from '@directly/schemas';
...
const user = normalize(response, definitions.user);
...