ForestAdmin/lumber

View on GitHub
deserializers/application-token.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
const JSONAPIDeserializer = require('jsonapi-serializer').Deserializer;

/**
 * @typedef {{
 *  id: string;
 *  name: string;
 *  token: string;
 * }} ApplicationToken
 */

const applicationTokenDeserializer = new JSONAPIDeserializer({
  keyForAttribute: 'camelCase',
});

module.exports = applicationTokenDeserializer;