Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Add TypeScript definitions. #132

Merged
merged 2 commits into from
Jan 22, 2019
Merged

Add TypeScript definitions. #132

merged 2 commits into from
Jan 22, 2019

Conversation

fimars
Copy link
Contributor

@fimars fimars commented Dec 19, 2018

Ref DefinitelyTyped/DefinitelyTyped#27519
And inspire #123 (Don't know why this PR closed.

CC @edmorley

@fimars
Copy link
Contributor Author

fimars commented Dec 20, 2018

cc @edmorley any response. 😄

Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

Hi! Thank you for opening a PR :-)

@eliperelman this looks reasonable to me, and minimal impact + tested on Travis.
I can't say as to whether the typings are accurate (beyond the test) but I guess they've been working for people via https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/webpack-chain/index.d.ts so should be fine, right?

I'm on vacation from tomorrow until January, so if you're fine with this could you merge/release? :-)

types/index.d.ts Outdated Show resolved Hide resolved
@yordis
Copy link
Contributor

yordis commented Dec 27, 2018

@edmorley would you take a PR using TypeScript for this project?

We do not need to turn strict rules on so it will feel like JavaScript so we do not need to fight the tool but we can take advantage of it.

If you will maintain this file at the end, I see more value on using TypeScript.

I take the take the responsibility to convert the project so you can focus on something else.

@eliperelman
Copy link
Member

@yordis We won't be using TypeScript in this project other than typings.

Copy link
Member

@eliperelman eliperelman left a comment

Choose a reason for hiding this comment

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

Could you switch this to use 2-space indentation like the rest of the codebase? Thanks!

@yordis
Copy link
Contributor

yordis commented Jan 2, 2019

💔 <--- On reactions

Any particular reason? You can turn all the TypeScript noise off and maintain the typespec as you are doing it today but in the code 💔

@eliperelman
Copy link
Member

@yordis we don't use TypeScript, and maintaining tooling and syntax around a language we don't use increases our maintenance burden.

@edmorley
Copy link
Member

Sorry for the delay here. Could you rebase on master and adjust the typings to account for #133?

@eliperelman once those changes made, any other items you'd like to see addressed, or good to merge?

@fimars
Copy link
Contributor Author

fimars commented Jan 21, 2019

Sorry for the delay here. Could you rebase on master and adjust the typings to account for #133?

@eliperelman once those changes made, any other items you'd like to see addressed, or good to merge?

I adjusted the type declaration file against the latest documentation. review need.
@edmorley @eliperelman

Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

Thank you for the updates - looks great now :-)

@edmorley
Copy link
Member

Released in webpack-chain v5.2.0:
https://www.npmjs.com/package/webpack-chain/v/5.2.0

@edmorley edmorley added the types label Jan 28, 2020
edmorley added a commit that referenced this pull request Jul 19, 2020
It was added in #132 but has always been unused.
edmorley added a commit that referenced this pull request Jul 20, 2020
It was added in #132 but has always been unused.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

None yet

4 participants