Skip to content

cupertino-files / CloneOptions

Interface: CloneOptions ​

Defined in: src/tsp/clone.ts:23

Properties ​

component? ​

optional component?: Component

Defined in: src/tsp/clone.ts:25

Where clones are created. Defaults to each source's own component.


follow? ​

optional follow?: (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 ​

IwaObject

depth ​

number

Returns ​

boolean


maxDepth? ​

optional maxDepth?: number

Defined in: src/tsp/clone.ts:36

How deep to follow references.


maxObjects? ​

optional maxObjects?: number

Defined in: src/tsp/clone.ts:34

Safety valve against a cycle or a runaway graph.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.