update puppeteer to use setContent with wait and housekeeping the declaration files

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 270c9e48aa
commit 9a4640fa98
4 changed files with 6 additions and 44 deletions

23
index.d.ts vendored
View File

@@ -4,26 +4,3 @@ declare namespace mitt {
(all?: { [key: string]: Array<Handler> }): Emitter;
}
}
declare module 'delegated-events' {
type EventHandler = (event: Event) => any;
type EventListenerOptions = {
capture?: boolean;
document?: Document;
};
export function on(
name: string,
selector: string,
handler: EventHandler,
options?: EventListenerOptions,
): void;
export function off(
name: string,
selector: string,
handler: EventHandler,
options?: EventListenerOptions,
): void;
export function fire(target: EventTarget, name: string, detail?: any): void;
}