update typings

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent d43d9e7edb
commit 65237a5ee9
3 changed files with 5 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export declare class ShadowDomManager {
private scrollCb; private scrollCb;
private bypassOptions; private bypassOptions;
private mirror; private mirror;
private restorePatches;
constructor(options: { constructor(options: {
mutationCb: mutationCallBack; mutationCb: mutationCallBack;
scrollCb: scrollCallback; scrollCb: scrollCallback;
@@ -14,5 +15,7 @@ export declare class ShadowDomManager {
mirror: Mirror; mirror: Mirror;
}); });
addShadowRoot(shadowRoot: ShadowRoot, doc: Document): void; addShadowRoot(shadowRoot: ShadowRoot, doc: Document): void;
observeAttachShadow(iframeElement: HTMLIFrameElement): void;
reset(): void;
} }
export {}; export {};

View File

@@ -59,6 +59,7 @@ export declare class Replayer {
private applyMutation; private applyMutation;
private applyScroll; private applyScroll;
private applyInput; private applyInput;
private applyText;
private legacy_resolveMissingNode; private legacy_resolveMissingNode;
private moveAndHover; private moveAndHover;
private drawMouseTail; private drawMouseTail;

View File

@@ -494,4 +494,5 @@ declare global {
} }
} }
export declare type IWindow = Window & typeof globalThis; export declare type IWindow = Window & typeof globalThis;
export declare type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
export {}; export {};