rollup / rollup-plugin-node-resolve

This module has moved and is now available at @rollup/plugin-node-resolve / https://github.com/rollup/plugins/blob/master/packages/node-resolve
MIT License
469 stars 96 forks source link

Add .d.ts typings file #189

Closed NotWoods closed 5 years ago

NotWoods commented 5 years ago

Adds a .d.ts TypeScript declaration file to support typechecking a Rollup config with TypeScript.

TypeScript allows for checking normal Javascript files by adding a // @ts-check comment at the top of the file. By providing typings users can check that they aren't passing misspelled or incorrect parameters, and see a hint about what each option does in their editor.

typings-demo-node-resolve

NotWoods commented 5 years ago

Rebased and fixed package.json!

lukastaegert commented 5 years ago

Awesome quick response, thanks!

Kocal commented 5 years ago

Nice improvments! :) I've just created a PR (https://github.com/DefinitelyTyped/DefinitelyTyped/pull/34598) to remove types from DefinitlyTyped repo.