Skip to content

Make HarmonyAcceptImportDependencyTemplate extend HarmonyImportDependency.Template - #6989

Merged
sokra merged 3 commits into
webpack:masterfrom
mohsen1:extend-Template
Apr 11, 2018
Merged

sokra merged 3 commits into
webpack:masterfrom
mohsen1:extend-Template

Conversation

@mohsen1

@mohsen1 mohsen1 commented Apr 8, 2018

Copy link
Copy Markdown
Contributor

What kind of change does this PR introduce?
Refactor

Did you add tests for your changes?
No

If relevant, link to documentation update:
N/A

Summary
This is something that TypeScript is complaining about in #6862

When a static member a subclass does not conform to superclass static member TypeScript throws a type error.

This is a code change that can potentially break things but on the other hand I thought it makes sense to have this class extend superclass static member class Template.

Please let me know if I'm wrong about this.

Does this PR introduce a breaking change?
Potentially

Other information
This might be a TypeScript bug. FYI @DanielRosenwasser @mhegazy

@sokra sokra left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

check formating

yarn pretty

@webpack-bot

Copy link
Copy Markdown
Contributor

@ooflorent Thanks for your update.

I labeled the Pull Request so reviewers will review it again.

@sokra Please review the new changes.

@webpack-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request! The most important CI builds succeeded, we’ll review the pull request soon.

@sokra
sokra merged commit 30da6c5 into webpack:master Apr 11, 2018
@sokra

sokra commented Apr 11, 2018

Copy link
Copy Markdown
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.

4 participants