Skip to content

Alignment partitionType has a dead 'dna' case #269

Open

Description

@jtklein-agents

Found while typing the alignment store (#247).

Alignment.partitionType in src/app/store/Alignment.ts switches on dataType and has a case 'dna': beside case 'nucleotide':. The parser's DataType (src/common/typecheckAlignment.ts) never holds 'dna', so the case is unreachable and TypeScript reports TS2678. #247 keeps the case and holds the diagnostic with a @ts-expect-error.

What to build

Delete the dead 'dna' case and its @ts-expect-error. The partition type for nucleotide data stays DNA.

Acceptance criteria

  • partitionType has no 'dna' case and no @ts-expect-error
  • Plain tsc reports nothing for src/app/store/Alignment.ts
  • yarn react-test passes

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions