"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.CloneType = exports.CloneRest = void 0;
const value_1 = require("./value");
/** Clones a Rest */
function CloneRest(schemas) {
    return schemas.map((schema) => CloneType(schema));
}
exports.CloneRest = CloneRest;
/** Clones a Type */
function CloneType(schema, options = {}) {
    return { ...(0, value_1.Clone)(schema), ...options };
}
exports.CloneType = CloneType;
