Skip to content

Can UtteranceQueue be immutable and made private? #125

Description

@jessegreenberg

We are finding it difficult to use Utterance. It is confusing that the alert can be mutated, and is often mutated internally like 840669961a5f54e01d209486653ed73/js/accessibility/voicing/Voicing.ts#L463-L466 wich is difficult to work with.

Also, can we get rid of Utterances as a public data structure? It seems like we should not need to construct Utterances to add to the queue. Metadata/options are reasonable but creating a new Utterance adds extra boilerplate.

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