gradum-kit - v0.1.0
    Preparing search index...

    Type Alias CloneElementOptions

    Controls what GradumSelector.clone carries over to the copy. By default a clone gets the origin's own fields but shares object and node references; these options let you deepen or narrow that per field.

    type CloneElementOptions = {
        exclude?: PropertyKey[];
        forceInclude?: PropertyKey[];
        deepClone?: PropertyKey[];
        copyReference?: PropertyKey[];
        copyNodes?: boolean;
        deepCloneObjects?: boolean;
        deepCloneNodes?: boolean;
        snapshotData?: boolean;
    }
    Index
    exclude?: PropertyKey[]

    Fields to leave off the clone entirely.

    forceInclude?: PropertyKey[]

    Fields to copy even though they would normally be skipped.

    deepClone?: PropertyKey[]

    Fields to deep-clone rather than copy by reference.

    copyReference?: PropertyKey[]

    Fields to copy by reference even under a deep-clone setting.

    copyNodes?: boolean

    Whether to copy fields holding DOM nodes.

    deepCloneObjects?: boolean

    Whether to deep-clone every object-valued field.

    deepCloneNodes?: boolean

    Whether to deep-clone every node-valued field.

    snapshotData?: boolean

    Whether the clone's model gets a detached snapshot of the data instead of a live reference. See the note on the field.