chore: fix ESLint violation and lessen rule strictness (#6081)

This commit is contained in:
Jack Franklin
2020-06-23 12:55:42 +01:00
committed by GitHub
parent fdc6fda46e
commit 70a900e93b
37 changed files with 285 additions and 101 deletions

View File

@@ -7,7 +7,7 @@
<b>Signature:</b>
```typescript
waitForFunction(pageFunction: Function, options?: {
waitForFunction(pageFunction: Function | string, options?: {
timeout?: number;
polling?: string | number;
}, ...args: unknown[]): Promise<JSHandle>;
@@ -17,7 +17,7 @@ waitForFunction(pageFunction: Function, options?: {
| Parameter | Type | Description |
| --- | --- | --- |
| pageFunction | Function | |
| pageFunction | Function \| string | |
| options | { timeout?: number; polling?: string \| number; } | |
| args | unknown\[\] | |