Skip to content

Instantly share code, notes, and snippets.

@rluvaton
Last active April 29, 2020 21:24
Show Gist options
  • Save rluvaton/3559848458c607caa9d731b2bada73b7 to your computer and use it in GitHub Desktop.
Save rluvaton/3559848458c607caa9d731b2bada73b7 to your computer and use it in GitHub Desktop.
Reference types from another file / library #jsdoc #types #js
// Example of how to reference another file / library type
import puppeteer from 'puppeteer';
/** @typedef {import(@types/puppeteer).Browser} Browser */
/**
* @type Browser
*/
let browser;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment