Vinyl
    Preparing search index...

    Interface CloneRule<T>

    A CloneRule defines if and how an object should be cloned.

    interface CloneRule<T> {
        clone: (source: T, clone: CloneCallback) => MutableDeep<T>;
        matches: (object: any) => object is T;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    clone: (source: T, clone: CloneCallback) => MutableDeep<T>

    Clones the given value.

    Type declaration

    matches: (object: any) => object is T

    Returns true if this MergeRule should be applied for the given object.