illusory
Version:
Seamlessly morph one element into another.
10 lines (9 loc) • 443 B
TypeScript
export declare type FilterFunction = (attributeName: string) => boolean;
export declare type CloneProcessorFunction = (node: Node, depth: number) => Node | null;
interface ICloneOptions {
includeChildren?: boolean;
preserveDataAttributes?: boolean | FilterFunction;
processClone?: CloneProcessorFunction;
}
export declare function duplicateNode(node: Node, options: ICloneOptions, depth?: number): Node | null;
export {};