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

[no-inferred-empty-object-type] Skip test in TS > 3.4.x #4661

Merged
merged 2 commits into from Apr 16, 2019
Merged

[no-inferred-empty-object-type] Skip test in TS > 3.4.x #4661

merged 2 commits into from Apr 16, 2019

Conversation

ericbf
Copy link
Contributor

@ericbf ericbf commented Apr 15, 2019

As the generic parameters are inferred as unknown in newer TS versions (> 3.4.x), this rule no longer applies in those versions, and those places that would have previously thrown an error, as seen in the tests, no longer should throw as they are no longer inferred as {}.

PR checklist

Overview of change:

TS above 3.4.x infers the types to unknown instead of {}, so the tests no longer apply.

CHANGELOG.md entry:

[no-log]

As the generic parameters are inferred as `unknown` in newer TS versions (> 3.4.x), this rule no longer applies in those versions, and those places that would have previously thrown an error, as seen in the tests, no longer should throw as they are no longer inferred as `{}`.
@adidahiya adidahiya merged commit 5272262 into palantir:master Apr 16, 2019
@ericbf ericbf deleted the fix-no-inferred-empty-object-type-test branch April 16, 2019 19:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testNext is broken in CI builds
3 participants