Skip to content

Refactor column picker typing #245

@PowerKiKi

Description

@PowerKiKi

Refactor as described below for easier usage. Because the only non-ES2020 project is Dilps and we don't use ColumnPicker there.

* Implementation details:
*
* Unfortunately, we cannot use a `Record<AvailableColumn>` where keys would implicitly be unique and would replace
* this ID property, because only ES2020 guarantee the order of object keys, and we must still support ES2015 for
* iPhone 6. So, instead of `Record<AvailableColumn>`, we use `AvailableColumn[]` for now. But this could be
* revisited once we drop support of ES2015.
*
* @see https://stackoverflow.com/questions/30076219/does-es6-introduce-a-well-defined-order-of-enumeration-for-object-properties

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions