Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
10 lines
305 B
Plaintext
10 lines
305 B
Plaintext
import { Clone } from './value.mjs';
|
|
/** Clones a Rest */
|
|
export function CloneRest(schemas) {
|
|
return schemas.map((schema) => CloneType(schema));
|
|
}
|
|
/** Clones a Type */
|
|
export function CloneType(schema, options) {
|
|
return options === undefined ? Clone(schema) : Clone({ ...options, ...schema });
|
|
}
|