8000 Logical issue with `{}` type · Issue #5542 · typescript-eslint/typescript-eslint · GitHub
[go: up one dir, main page]

Skip to content
Logical issue with {} type #5542
Closed as not planned
Closed as not planned
@avin-kavish

Description

@avin-kavish

Before You File a Documentation Request Please Confirm You Have Done The Following...

Suggested Changes

Not sure which category to fit this in.

When I use {} as a type, it tells me 'don't use {} as a type, it means non-nullish value'. Except, I use it because I'm exactly expecting a non-nullish value, and this is the type that means non-nullish. Typescript 4.8 is also going to be switching to this to indicate non-nullability, so I think this message or rule needs to be reconsidered.

Affected URL(s)

None.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0