Skip to content

[Validation] Prevent "all string literal" unions and suggest to use enums instead #2365

@flobernd

Description

@flobernd

Instead of:

export type ManagedBy = | 'Index Lifecycle Management' | 'Data stream lifecycle' | 'Unmanaged'

validation should suggest:

enum ManagedBy { 'Index Lifecycle Management', 'Data stream lifecycle', 'Unmanaged' }

cc @swallez

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions