UNPKG

markbello-iguazu-rest

Version:

A Redux REST caching library that follows Iguazu patterns

31 lines (27 loc) 584 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clearResource = clearResource; exports.clearCollection = clearCollection; var _types = require("../types"); function clearResource(_ref) { var resource = _ref.resource, id = _ref.id; return { resource: resource, id: id, type: _types.CLEAR_RESOURCE }; } function clearCollection(_ref2) { var resource = _ref2.resource, id = _ref2.id, opts = _ref2.opts; return { resource: resource, id: id, opts: opts, type: _types.CLEAR_COLLECTION }; }