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

This commit is contained in:
Yanzhen Yu
2018-12-03 10:07:38 +08:00
parent 8da0989710
commit af44982a79
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;
}