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

fix: accept readonly arrays in fromFixture's parameters #6

Merged
merged 2 commits into from Oct 17, 2021

Conversation

rafaelss95
Copy link
Contributor

Fixes #4.

Comment on lines 12 to 15
suggestions?:
| readonly eslint.SuggestionOutput<TMessageIds>[]
| null
| undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When typescript-eslint/typescript-eslint#3844 gets in, it could be simply:

Suggested change
suggestions?:
| readonly eslint.SuggestionOutput<TMessageIds>[]
| null
| undefined;
suggestions: eslint.TestCaseError<TMessageIds>["suggestions"];

@cartant cartant changed the base branch from main to v4 October 17, 2021 00:16
@cartant cartant merged commit 11a0792 into cartant:v4 Oct 17, 2021
cartant pushed a commit that referenced this pull request Oct 17, 2021
* fix: accept readonly arrays in `fromFixture`'s parameters

* refactor: remove redundant `undefined`
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.

Accept immutable arrays within fromFixture
2 participants