Skip to content

Commit ba433b7

Browse files
authored
Merge pull request #111 from deepgram/issue-cleanup
moving detected_language to correct type
2 parents 0c13318 + 58568cc commit ba433b7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/types/alternatives.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ export type Alternative = {
3030
* Array of entity objects.
3131
*/
3232
entities?: Array<Entity>;
33-
/**
34-
* String indicating the detected language. eg: 'en'
35-
*/
36-
detected_language?: string;
33+
3734
/**
3835
* Array of language objects for each language the response has been translated into
3936
*/

src/types/channel.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ export type Channel = {
1313
* Transcription alternatives
1414
*/
1515
alternatives: Array<Alternative>;
16+
/**
17+
* String indicating the detected language. eg: 'en'
18+
*/
19+
detected_language?: string;
1620
};

0 commit comments

Comments
 (0)