Skip to content

Better incomplete product (type) error #6

@HugoMendes98

Description

@HugoMendes98

It currently returns a "possibly unusable and impossible" type to rise error at compilation time.
However, something like ts-pattern exhaustive would be great.
It really fails at compilation (when the current implementation returns another type) and it also give some information about the non-exhaustive patterns.

The objectifs are:

  • Make it fail at compilation.
    • The developer must volontary add a ts-error
  • With or without the previous task, inform in a way of the missings elements from the pattern.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions