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

5
typings/rebuild.d.ts vendored Normal file
View File

@@ -0,0 +1,5 @@
import { serializedNodeWithId, idNodeMap, INode } from './types';
export declare function addHoverClass(cssText: string): string;
export declare function buildNodeWithSN(n: serializedNodeWithId, doc: Document, map: idNodeMap, skipChild?: boolean): INode | null;
declare function rebuild(n: serializedNodeWithId, doc: Document): [Node | null, idNodeMap];
export default rebuild;