Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mistyping on LiveTranscriptionEvent.channel.alternatives.confidence #213

Closed
cstigler opened this issue Dec 4, 2023 · 0 comments · Fixed by #217
Closed

Mistyping on LiveTranscriptionEvent.channel.alternatives.confidence #213

cstigler opened this issue Dec 4, 2023 · 0 comments · Fixed by #217
Assignees
Labels
bug Something isn't working

Comments

@cstigler
Copy link

cstigler commented Dec 4, 2023

What is the current behavior?

LiveTranscriptionEvent.channel.alternatives.confidence has the type boolean, when I believe it should be a numerical confidence level. This means it will give type errors every time I try to use it in my TypeScript code.

Steps to reproduce

Try to use that variable, or look at your type code here: https://github.com/deepgram/deepgram-node-sdk/blob/2734f695bfe574cd0bdfcd19227283bffae0acba/src/lib/types/LiveTranscriptionEvent.ts#L11

Expected behavior

It should be a number, unless the Deepgram docs are wrong.

Please tell us about your environment

TypeScript (NextJS 13)

Other information

@lukeocodes lukeocodes added the bug Something isn't working label Dec 5, 2023
@lukeocodes lukeocodes self-assigned this Dec 5, 2023
@lukeocodes lukeocodes linked a pull request Dec 5, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants