cupertino-files / CloneOptions
Interface: CloneOptions
Defined in: src/tsp/clone.ts:23
Properties
component?
optionalcomponent?:Component
Defined in: src/tsp/clone.ts:25
Where clones are created. Defaults to each source's own component.
follow?
optionalfollow?: (object,depth) =>boolean
Defined in: src/tsp/clone.ts:32
Whether to clone a referenced object rather than share it.
Returning false is not a failure — it is how the copy keeps sharing the styles, masters and themes that make it look like the original.
Parameters
object
depth
number
Returns
boolean
maxDepth?
optionalmaxDepth?:number
Defined in: src/tsp/clone.ts:36
How deep to follow references.
maxObjects?
optionalmaxObjects?:number
Defined in: src/tsp/clone.ts:34
Safety valve against a cycle or a runaway graph.