update typings

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 76ba992d06
commit 11f8a78f71
2 changed files with 2 additions and 2 deletions

View File

@@ -270,7 +270,7 @@ export function serializeNodeWithId(
function snapshot(
n: Document,
blockClass = 'rr-block',
blockClass: string | RegExp = 'rr-block',
): [serializedNodeWithId | null, idNodeMap] {
resetId();
const idNodeMap: idNodeMap = {};

View File

@@ -2,5 +2,5 @@ import { serializedNodeWithId, idNodeMap } from './types';
export declare function resetId(): void;
export declare function absoluteToStylesheet(cssText: string, href: string): string;
export declare function serializeNodeWithId(n: Node, doc: Document, map: idNodeMap, blockClass: string | RegExp, skipChild?: boolean): serializedNodeWithId | null;
declare function snapshot(n: Document, blockClass?: string): [serializedNodeWithId | null, idNodeMap];
declare function snapshot(n: Document, blockClass?: string | RegExp): [serializedNodeWithId | null, idNodeMap];
export default snapshot;