UNPKG

typia

Version:

Superfast runtime validators with only one line

17 lines (16 loc) 565 B
import { _notationKeyCollision } from "./_notationKeyCollision.mjs"; //#region src/internal/_notationAssign.ts const _notationAssign = (output, sources, source, value, rename) => { const destination = rename(source); if (Object.hasOwn(output, destination)) _notationKeyCollision(sources[destination], source, destination); Object.defineProperty(output, destination, { configurable: true, enumerable: true, value, writable: true }); sources[destination] = source; }; //#endregion export { _notationAssign }; //# sourceMappingURL=_notationAssign.mjs.map