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

review rule - no-inferrable-types #92

Closed
aaronchenwei opened this issue Nov 16, 2018 · 3 comments
Closed

review rule - no-inferrable-types #92

aaronchenwei opened this issue Nov 16, 2018 · 3 comments

Comments

@aaronchenwei
Copy link
Owner

doc

@liangfeng1107
Copy link
Collaborator

In doc, we can use it. But I think it should be set: "no-inferrable-types": [true, "ignore-params", "ignore-properties"]

fn = (a: number = 5, b: number | string = 6) => {};

is not same to:

fn = (a: number, b: number | string) => {};

Or

fn = (a = 5, b = 6) => {};

@aaronchenwei
Copy link
Owner Author

After reading this issue thread, I don't think we would like to introduce this rule for now.

@aaronchenwei
Copy link
Owner Author

Close this issue for now. Please reopen if you have any comments.

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

No branches or pull requests

2 participants