mirror of
https://github.com/zoriya/typebox.git
synced 2026-06-02 19:11:14 +00:00
Revision 0.26.0
This commit is contained in:
+1
-1
@@ -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 }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user