Skip to content

new ts 5.0 const generic enum? #367

@trim21

Description

@trim21

ts 5.0 new feature const generic type microsoft/TypeScript#51865

Type.Enum(
      {
        s3: 's3',
        FS: 'fs',
      } as const,
      { default: 'fs },
    )

could become

Type.Enum(
      {
        s3: 's3',
        FS: 'fs',
      } ,
      { default: 'fs' },
    )

without as const

Metadata

Metadata

Assignees

No one assigned

    Labels

    futureCandidate future functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions