Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Fix callable-types should handle new(): T just like (): T #4352

Merged
merged 9 commits into from
Dec 11, 2018
Merged

Fix callable-types should handle new(): T just like (): T #4352

merged 9 commits into from
Dec 11, 2018

Conversation

rrogowski
Copy link
Contributor

PR checklist

Overview of change:

Walker for callable-types rule handles the case where an interface contains a single construct signature declaration.

CHANGELOG.md entry:

[bugfix]callable-types support interfaces containing a single construct signature (#4291)

Copy link

@giladgray giladgray left a comment

Choose a reason for hiding this comment

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

looks good 👍

@rrogowski please fix lint.

@rrogowski
Copy link
Contributor Author

@giladgray Lint passing. Please see my newly added TODO item in src/language/formatter/formatter.ts.

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

LGTM, great fix! Just the one line to change with filing an issue.

src/language/formatter/formatter.ts Show resolved Hide resolved
@rrogowski
Copy link
Contributor Author

@JoshuaKGoldberg An issue has been filed (#4364) and I've added a line above the TODO linking to the issue.

Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

Super! Thanks @rrogowski!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants