Add ability to reset the mapping id, to facilitate destructor in rrweb (rrwebRecord.stop) (#49)

This commit is contained in:
Eoghan Murray
2020-10-24 09:10:51 +01:00
committed by GitHub
parent b3e7d5a476
commit 14bdd67459
4 changed files with 10 additions and 2 deletions

View File

@@ -6,4 +6,5 @@ export declare function transformAttribute(doc: Document, name: string, value: s
export declare function serializeNodeWithId(n: Node | INode, doc: Document, map: idNodeMap, blockClass: string | RegExp, skipChild?: boolean, inlineStylesheet?: boolean, maskInputOptions?: MaskInputOptions, slimDOMOptions?: SlimDOMOptions, recordCanvas?: boolean, preserveWhiteSpace?: boolean): serializedNodeWithId | null;
declare function snapshot(n: Document, blockClass: string | RegExp | undefined, inlineStylesheet: boolean | undefined, maskAllInputsOrOptions: boolean | MaskInputOptions, slimDOMSensibleOrOptions: boolean | SlimDOMOptions, recordCanvas?: boolean): [serializedNodeWithId | null, idNodeMap];
export declare function visitSnapshot(node: serializedNodeWithId, onVisit: (node: serializedNodeWithId) => unknown): void;
export declare function cleanupSnapshot(): void;
export default snapshot;