puppeteer/src
Jack Franklin 1a57ba22a8
chore: Migrate TaskQueue to TypeScript (#5658)
This is a simple module but took a bit of work because:

* It wraps a Promise that can return basically anything. In a pure TS
codebase we'd solve these with generics, so you could do `new
TaskQueue<T>` where `T` will be what's returned from the queue, but
because we're calling that from JS we can't yet. I've left a TODO and
once we migrate the call sites to TS we can do a much better job than
the `void | any` type I've gone with for now.

* It was used in typedefs via `Puppeteer.TaskQueue`. I've removed that
entry from `externs.d.ts` in favour of importing it and using the type
directly. This does mean that we have imports that ESLint doesn't
realiase are actually used but I think this is better than maintaining
`externs.d.ts`.
2020-04-17 11:32:56 +02:00
..
.eslintrc.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Accessibility.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
api.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Browser.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
BrowserFetcher.js chore(deps): update extract-zip to version 2 (#5610) 2020-04-09 21:13:25 +02:00
Connection.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Coverage.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
DeviceDescriptors.ts chore(eslint): add eslint typescript linting (#5635) 2020-04-14 12:08:52 +01:00
Dialog.ts chore(typescript): migrate src/Dialog (#5639) 2020-04-16 14:59:28 +01:00
DOMWorld.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
EmulationManager.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Errors.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Events.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
ExecutionContext.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
externs.d.ts chore: Migrate TaskQueue to TypeScript (#5658) 2020-04-17 11:32:56 +02:00
FrameManager.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
helper.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Input.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
JSHandle.js fix(JSHandle): Fixes file upload (#5655) 2020-04-16 16:22:52 +01:00
Launcher.js fix: set revision based on PUPPETEER_PRODUCT (#5643) 2020-04-15 13:30:42 +02:00
LifecycleWatcher.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Multimap.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
NetworkManager.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Page.js chore: Migrate TaskQueue to TypeScript (#5658) 2020-04-17 11:32:56 +02:00
PipeTransport.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
protocol.d.ts chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Puppeteer.js fix: set revision based on PUPPETEER_PRODUCT (#5643) 2020-04-15 13:30:42 +02:00
Target.js chore: Migrate TaskQueue to TypeScript (#5658) 2020-04-17 11:32:56 +02:00
TaskQueue.ts chore: Migrate TaskQueue to TypeScript (#5658) 2020-04-17 11:32:56 +02:00
TimeoutSettings.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Tracing.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
USKeyboardLayout.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
WebSocketTransport.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00
Worker.js chore: move code to src/ and emit with TypeScript (#5568) 2020-04-02 16:25:19 +02:00