UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

11 lines (10 loc) 551 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRemoval = exports.$remove = exports.$REMOVE = void 0; const isObject_js_1 = require("../../../../utils/validation/isObject.js"); const isExtension_js_1 = require("./isExtension.js"); exports.$REMOVE = Symbol('$REMOVE'); const $remove = () => ({ [isExtension_js_1.$IS_EXTENSION]: true, [exports.$REMOVE]: true }); exports.$remove = $remove; const isRemoval = (input) => (0, isObject_js_1.isObject)(input) && exports.$REMOVE in input; exports.isRemoval = isRemoval;