Skip to content

The problem with enumerated and Booleanish #14301

Open
@AlexRMU

Description

@AlexRMU

Describe the bug

There are several attributes whose values can be enumerated.
However, if the values are string representations of booleans, then the value type becomes Booleanish.

draggable?: Booleanish | undefined | null;

This can lead to similar errors:

Reproduction

https://svelte.dev/playground/98dbee7e667d49028d0d7a662fd58f4e?version=5.1.16

Logs

No response

System Info

-

Severity

annoyance

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