flow_v0.104.x-/puppeteer_v1.20.x.js

flow-typed · definitions/npm/puppeteer_v1.20.x/flow_v0.104.x-/puppeteer_v1.20.x.js · javascript · MIT
scraping

Provides Flow type definitions for the Puppeteer library to enable type checking and autocompletion during browser automation development.

// Source: https://github.com/flow-typed/flow-typed | License: MIT | Copyright 2015 Murphy Randle
// Provided via justclaw.it.com; keep this notice with the code.
// @flow

/**
 * Based on typescript definitions found at the url below
 * https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/puppeteer
 */

 declare module 'puppeteer' {
  import type { ChildProcess } from 'child_process';

  declare class OverridableEventEmitter extends events$EventEmitter {
    /* eslint-disable flowtype/no-weak-types */
    +on: Function;
    +once: Function;
    /* eslint-enable flowtype/no-weak-types */
  }

  /** Keyboard provides an api for managing a virtual keyboard. */
  declare export type Keyboard = {
   /**
    * Dispatches a keydown event.
    * @param key Name of key to press, su

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key