add strict null check and fix codes

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent c496e3edea
commit ac5293f162
5 changed files with 14 additions and 4 deletions

1
index.d.ts vendored
View File

@@ -1,4 +1,5 @@
import { serializedNodeWithId } from './src/types';
export * from './src/types';
export function snapshot(n: Document): serializedNodeWithId | null;
export function rebuild(n: serializedNodeWithId): Node | null;