Skip to content

Commit

Permalink
fix(audio): use export type
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Sep 30, 2024
1 parent 806a873 commit 1519100
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
12 changes: 10 additions & 2 deletions src/resources/audio/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ export namespace Audio {
export import TranscriptionVerbose = TranscriptionsAPI.TranscriptionVerbose;
export import TranscriptionWord = TranscriptionsAPI.TranscriptionWord;
export import TranscriptionCreateResponse = TranscriptionsAPI.TranscriptionCreateResponse;
export import TranscriptionCreateParams = TranscriptionsAPI.TranscriptionCreateParams;
export type TranscriptionCreateParams<
ResponseFormat extends AudioAPI.AudioResponseFormat | undefined =
| AudioAPI.AudioResponseFormat
| undefined,
> = TranscriptionsAPI.TranscriptionCreateParams<ResponseFormat>;
export import Translations = TranslationsAPI.Translations;
export import Translation = TranslationsAPI.Translation;
export import TranslationVerbose = TranslationsAPI.TranslationVerbose;
export import TranslationCreateResponse = TranslationsAPI.TranslationCreateResponse;
export import TranslationCreateParams = TranslationsAPI.TranslationCreateParams;
export type TranslationCreateParams<
ResponseFormat extends AudioAPI.AudioResponseFormat | undefined =
| AudioAPI.AudioResponseFormat
| undefined,
> = TranslationsAPI.TranslationCreateParams<ResponseFormat>;
export import Speech = SpeechAPI.Speech;
export import SpeechModel = SpeechAPI.SpeechModel;
export import SpeechCreateParams = SpeechAPI.SpeechCreateParams;
Expand Down
6 changes: 5 additions & 1 deletion src/resources/audio/transcriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,5 +210,9 @@ export namespace Transcriptions {
export import TranscriptionVerbose = TranscriptionsAPI.TranscriptionVerbose;
export import TranscriptionWord = TranscriptionsAPI.TranscriptionWord;
export import TranscriptionCreateResponse = TranscriptionsAPI.TranscriptionCreateResponse;
export import TranscriptionCreateParams = TranscriptionsAPI.TranscriptionCreateParams;
export type TranscriptionCreateParams<
ResponseFormat extends AudioAPI.AudioResponseFormat | undefined =
| AudioAPI.AudioResponseFormat
| undefined,
> = TranscriptionsAPI.TranscriptionCreateParams<ResponseFormat>;
}
6 changes: 5 additions & 1 deletion src/resources/audio/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,9 @@ export namespace Translations {
export import Translation = TranslationsAPI.Translation;
export import TranslationVerbose = TranslationsAPI.TranslationVerbose;
export import TranslationCreateResponse = TranslationsAPI.TranslationCreateResponse;
export import TranslationCreateParams = TranslationsAPI.TranslationCreateParams;
export type TranslationCreateParams<
ResponseFormat extends AudioAPI.AudioResponseFormat | undefined =
| AudioAPI.AudioResponseFormat
| undefined,
> = TranslationsAPI.TranslationCreateParams<ResponseFormat>;
}

0 comments on commit 1519100

Please sign in to comment.