diff --git a/src/index.ts b/src/index.ts index 4899b35e..1560ed4e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -222,10 +222,10 @@ export namespace Anthropic { export import RequestOptions = Core.RequestOptions; export import Completions = API.Completions; - export type Completion = API.Completion; - export type CompletionCreateParams = API.CompletionCreateParams; - export type CompletionCreateParamsNonStreaming = API.CompletionCreateParamsNonStreaming; - export type CompletionCreateParamsStreaming = API.CompletionCreateParamsStreaming; + export import Completion = API.Completion; + export import CompletionCreateParams = API.CompletionCreateParams; + export import CompletionCreateParamsNonStreaming = API.CompletionCreateParamsNonStreaming; + export import CompletionCreateParamsStreaming = API.CompletionCreateParamsStreaming; } export default Anthropic; diff --git a/src/resources/completions.ts b/src/resources/completions.ts index 0d43ec01..dfc6d563 100644 --- a/src/resources/completions.ts +++ b/src/resources/completions.ts @@ -183,8 +183,8 @@ export interface CompletionCreateParamsStreaming extends CompletionCreateParamsB } export namespace Completions { - export type Completion = CompletionsAPI.Completion; - export type CompletionCreateParams = CompletionsAPI.CompletionCreateParams; - export type CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; - export type CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; + export import Completion = CompletionsAPI.Completion; + export import CompletionCreateParams = CompletionsAPI.CompletionCreateParams; + export import CompletionCreateParamsNonStreaming = CompletionsAPI.CompletionCreateParamsNonStreaming; + export import CompletionCreateParamsStreaming = CompletionsAPI.CompletionCreateParamsStreaming; }