Revision 0.26.0

This commit is contained in:
sinclair
2023-03-23 00:16:24 +09:00
parent 138f222ced
commit 4379e312a4
+1 -1
View File
@@ -1733,7 +1733,7 @@ export namespace TypeClone {
if (IsObject(value)) return Object(value)
return value
}
/** Clones a type. This function will omit non-self referential identifiers on the cloned type. */
/** Clones a type. */
export function Clone<T extends TSchema>(schema: T, options: SchemaOptions): T {
return { ...Visit(schema), ...options }
}