Skip to content

🎥 Make videos programmatically with React

timeout can be null

Jonny Burger3a0763086e72
diff --git a/packages/renderer/src/browser/DOMWorld.ts b/packages/renderer/src/browser/DOMWorld.ts
index cb49e89263..a6044901a9 100644
--- a/packages/renderer/src/browser/DOMWorld.ts
+++ b/packages/renderer/src/browser/DOMWorld.ts
@@ -125,7 +125,7 @@ export class DOMWorld {
shouldClosePage,
}: {
browser: HeadlessBrowser;
- timeout: number;
+ timeout: number | null;
pageFunction: Function | string;
title: string;
shouldClosePage: boolean;
@@ -152,7 +152,7 @@ interface WaitTaskOptions {
domWorld: DOMWorld;
predicateBody: Function | string;
title: string;
- timeout: number;
+ timeout: number | null;
browser: HeadlessBrowser;
args: SerializableOrJSHandle[];
shouldClosePage: boolean;
@@ -162,7 +162,7 @@ const noop = (): void => undefined;
class WaitTask {
#domWorld: DOMWorld;
- #timeout: number;
+ #timeout: number | null;
#predicateBody: string;
#args: SerializableOrJSHandle[];
#runCount = 0;