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

docs(readme): added types #660

Merged
merged 7 commits into from
Jan 20, 2022

Conversation

harish-sethuraman
Copy link
Contributor

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Changed to typescript types and standardized readme

@codecov
Copy link

codecov bot commented Jan 17, 2022

Codecov Report

Merging #660 (6bd3ae4) into master (9b5a314) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #660   +/-   ##
=======================================
  Coverage   90.17%   90.17%           
=======================================
  Files           2        2           
  Lines         397      397           
  Branches      119      119           
=======================================
  Hits          358      358           
  Misses         38       38           
  Partials        1        1           
Impacted Files Coverage Δ
src/index.js 90.16% <ø> (ø)

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 9b5a314...6bd3ae4. Read the comment docs.

README.md Outdated
Type:

```ts
type globOptions = object;
Copy link
Member

Choose a reason for hiding this comment

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

Let's use types from globby, just use the same name

Copy link
Contributor Author

Choose a reason for hiding this comment

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

import("globby").Options?

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
sourceFilename: string;
absoluteFilename: string;
}[]
) => any;
Copy link
Member

Choose a reason for hiding this comment

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

Should not be any

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 Am I looking at the wrong type then 😕

Copy link
Member

Choose a reason for hiding this comment

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

We should add @returns to types here too, looks like bug on our side

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought this returned any

README.md Outdated Show resolved Hide resolved
@@ -249,7 +249,7 @@ type TransformerObject = {
cache?: boolean | TransformerCacheObject | undefined;
};
type Transform = TransformerFunction | TransformerObject;
type Filter = (filepath: string) => any;
type Filter = (filepath: string) => boolean;
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

types/index.d.ts Outdated Show resolved Hide resolved
@alexander-akait alexander-akait merged commit 5f3a64a into webpack-contrib:master Jan 20, 2022
@alexander-akait
Copy link
Member

Thanks

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.

2 participants