add typings autogen command

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent e21921a2da
commit 1534dcf0d8
7 changed files with 74 additions and 24 deletions

6
typings/snapshot.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
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, skipChild?: boolean): serializedNodeWithId | null;
declare function snapshot(n: Document, blockClass?: string): [serializedNodeWithId | null, idNodeMap];
export default snapshot;