Jest-puppeteer: Bundle TypeScript definitions

Created on 9 Apr 2019  路  5Comments  路  Source: smooth-code/jest-puppeteer

馃殌 Feature Proposal

add bundle TypeScript definitions

see https://github.com/smooth-code/jest-puppeteer/issues/221

typings 馃敡

Most helpful comment

Hi! It's often not a good idea to bundle type definitions with a package if the package's author(s) don't write it in TypeScript already. Definitions get out of date easily and being tied into the package's release cycle can slow down updates. Keeping them on DefinitelyTyped means we get the automated process & crowdsourced reviews of that repository.

All 5 comments

There are already TS definitions for jest-puppeteer, but in a separate package: https://www.npmjs.com/package/@types/jest-environment-puppeteer

If you want to bundle them, it would make sense to ping the original author @JoshuaKGoldberg first.

Hi! It's often not a good idea to bundle type definitions with a package if the package's author(s) don't write it in TypeScript already. Definitions get out of date easily and being tied into the package's release cycle can slow down updates. Keeping them on DefinitelyTyped means we get the automated process & crowdsourced reviews of that repository.

Questions for author @JoshuaKGoldberg , since there is major update in the js version (e.g.: include visibility option in .toMatchElement function), would there be any update in the Typescript definition too? thank you!

We will not bundle types in this library, I am not a TypeScript expert and I don't want to deal with TypeScript issues. It is better to have them in a separated repository maintained by the TypeScript community.

@becky26 feel free to file an issue on DefinitelyTyped: https://github.com/DefinitelyTyped/DefinitelyTyped

It's always accepting PRs for updates to libraries

Was this page helpful?
0 / 5 - 0 ratings