Closed sircon closed 2 years ago
Amazing find and detail @sircon! We're on this now.
Thanks again for reporting this @sircon. Version 1.4.7 has just been released and should have resolved this.
I tested in a StackBlitz that you can check out here: https://stackblitz.com/edit/typescript-g4e1dm?file=index.ts
Thanks for the fix @MichaelJolley but... although the Deepgram
works now, there are some issues with other types. In version 1.3.1
I could import PrerecordedTranscriptionResponse
and WordBase
form your package and now it doesn't seem to find it anywhere. Looking at your dist
folder, it looks like you are missing two important folders you had before types/index.d.ts
and the transcription/index.d.ts
.
Do you think you can add these too?
For reference, how it looked before:
I could just copy & paste the interfaces, but obviously having it always up to date with the package would be the ideal situation!
Ugh. Can't believe I missed that. 1.4.8 should have them restored.
Works great @MichaelJolley, thanks for the quick fixes!
What is the current behavior?
I'm trying to upgrade from
~1.3.1
to the latest package version~1.4.5
and all the imports from this package are now throwing the following error:Steps to reproduce
yarn add @deepgram/sdk@latest
;import { Deepgram } from '@deepgram/sdk';
Expected behavior
I'd expect to import not only the main
Deepgram
class, but also many other different types such as:PrerecordedTranscriptionResponse
,WordBase
, etc.Please tell us about your environment
Other information
https://stackblitz.com/edit/typescript-vbkaj4?file=index.ts you might need a bit for it to fully load the linter but the result will be the same as the image: