puppeteer/src/common
Jack Franklin 6474edb9ba
feat(types): add types for $eval (#6135)
This pulls in the types (based on the DefinitelyTyped repo) for
`page.$eval` (and the `$eval` method on other classes). The `$eval`
method is quite hard to type due to the way we wrap and unwrap
ElementHandles that are passed to / returned from the `pageFunction`
that users provide.

Longer term we can improve the types by providing type overloads as
DefinitelyTyped does but I've deferred that for now (see the `TODO` in
the code for more details).
2020-07-02 10:09:34 +01:00
..
Accessibility.ts chore: enforce a max line length on comments (#6055) 2020-06-19 15:39:03 +01:00
assert.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Browser.ts docs(new): add TSDoc comments to BrowserContext (#6066) 2020-06-23 07:22:10 +02:00
Connection.ts docs(new): migrate CDPSession to TSDoc (#6064) 2020-06-22 12:05:10 +02:00
ConnectionTransport.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
ConsoleMessage.ts chore: avoid disabling prettier (#6079) 2020-06-23 15:02:22 +01:00
Coverage.ts docs(new): Add TSDoc to Coverage class (#6106) 2020-06-29 09:53:28 +01:00
Debug.ts chore(agnostic): Migrate DOMWorld (#6054) 2020-06-25 13:01:46 +02:00
DeviceDescriptors.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Dialog.ts chore: enforce a max line length on comments (#6055) 2020-06-19 15:39:03 +01:00
DOMWorld.ts feat(types): add types for $eval (#6135) 2020-07-02 10:09:34 +01:00
EmulationManager.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Errors.ts docs(new): migrate TimeoutError to TSDoc (#6062) 2020-06-22 10:34:57 +02:00
EvalTypes.ts feat(types): add types for $eval (#6135) 2020-07-02 10:09:34 +01:00
EventEmitter.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Events.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
ExecutionContext.ts feat(types): add (and fix) evaluateHandle types (#6130) 2020-07-01 12:44:08 +01:00
FileChooser.ts docs(new): migrate FileChooser docs to TSDoc (#6092) 2020-06-25 13:01:36 +02:00
FrameManager.ts feat(types): add types for $eval (#6135) 2020-07-02 10:09:34 +01:00
helper.ts chore: remove helper.promisify (#6100) 2020-06-25 13:01:46 +02:00
HTTPRequest.ts chore: enforce a max line length on comments (#6055) 2020-06-19 15:39:03 +01:00
HTTPResponse.ts docs(new): migrate HTTPResponse docs to TSDoc (#6085) 2020-06-25 13:01:46 +02:00
Input.ts docs(new): add TSDoc comments to Keyboard (#6099) 2020-06-25 13:01:46 +02:00
JSHandle.ts feat(types): add types for $eval (#6135) 2020-07-02 10:09:34 +01:00
LifecycleWatcher.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
NetworkManager.ts chore: enforce a max line length on comments (#6055) 2020-06-19 15:39:03 +01:00
Page.ts feat(types): add types for $eval (#6135) 2020-07-02 10:09:34 +01:00
Puppeteer.ts chore: Don't store revisions in package.json (#6109) 2020-06-29 16:13:24 +01:00
PuppeteerViewport.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
QueryHandler.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
SecurityDetails.ts docs(new): migrate SecurityDetails docs to TSDoc (#6053) 2020-06-19 15:30:28 +02:00
Target.ts docs(new): migrate Target to TSDoc (#6067) 2020-06-22 14:57:04 +02:00
TimeoutSettings.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
Tracing.ts docs(new): Adds TSDoc to Tracing class (#6088) 2020-06-25 13:01:46 +02:00
USKeyboardLayout.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
WebSocketTransport.ts chore: create common directory (#6042) 2020-06-18 15:53:23 +01:00
WebWorker.ts feat(types): add (and fix) evaluateHandle types (#6130) 2020-07-01 12:44:08 +01:00