UNPKG

dynamodb-toolbox

Version:

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

14 lines (13 loc) 586 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isPrepending = exports.$prepend = exports.$PREPEND = void 0; const isObject_js_1 = require("../../../../utils/validation/isObject.js"); const isExtension_js_1 = require("./isExtension.js"); exports.$PREPEND = Symbol('$PREPEND'); const $prepend = (value) => ({ [isExtension_js_1.$IS_EXTENSION]: true, [exports.$PREPEND]: value }); exports.$prepend = $prepend; const isPrepending = (input) => (0, isObject_js_1.isObject)(input) && exports.$PREPEND in input; exports.isPrepending = isPrepending;