Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes type definition on watch and Watcher constructor. #3074

Merged
merged 1 commit into from Aug 22, 2019
Merged

Fixes type definition on watch and Watcher constructor. #3074

merged 1 commit into from Aug 22, 2019

Conversation

MicahZoltu
Copy link
Contributor

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no - This is a bug in the type definitions, not in the runtime code.

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

Description

As seen on line 42, this function actually accepts either a GenericConfigObject[] or a GenericConfigObject. The documentation uses the non-array form, which results in a user following the documentation in TypeScript getting a type checker error.

As seen on line 42, this function actually accepts either a `GenericConfigObject[]` or a `GenericConfigObject`.  The documentation uses the non-array form, which results in a user following the documentation in TypeScript getting a type checker error.
@codecov
Copy link

codecov bot commented Aug 22, 2019

Codecov Report

Merging #3074 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3074   +/-   ##
======================================
  Coverage    88.8%   88.8%           
======================================
  Files         165     165           
  Lines        5728    5728           
  Branches     1743    1743           
======================================
  Hits         5087    5087           
  Misses        388     388           
  Partials      253     253
Impacted Files Coverage Δ
src/watch/index.ts 81.35% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54dfb28...a9314d5. Read the comment docs.

Copy link
Contributor

@shellscape shellscape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. According to https://www.rollupjs.org/guide/en/#rollupwatch:

The watchOptions argument is a config (or an array of configs) that you would export from a config file.

@lukastaegert lukastaegert merged commit 0314917 into rollup:master Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants