Skip to content

Commit 9f2d9b1

Browse files
chore(internal): use reexports not destructuring (#604)
1 parent 0f9db5c commit 9f2d9b1

1 file changed

Lines changed: 18 additions & 22 deletions

File tree

src/index.ts

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -289,31 +289,9 @@ export class Anthropic extends Core.APIClient {
289289
static fileFromPath = Uploads.fileFromPath;
290290
}
291291

292-
export const { HUMAN_PROMPT, AI_PROMPT } = Anthropic;
293-
294-
export {
295-
AnthropicError,
296-
APIError,
297-
APIConnectionError,
298-
APIConnectionTimeoutError,
299-
APIUserAbortError,
300-
NotFoundError,
301-
ConflictError,
302-
RateLimitError,
303-
BadRequestError,
304-
AuthenticationError,
305-
InternalServerError,
306-
PermissionDeniedError,
307-
UnprocessableEntityError,
308-
} from './error';
309-
310-
export import toFile = Uploads.toFile;
311-
export import fileFromPath = Uploads.fileFromPath;
312-
313292
Anthropic.Completions = Completions;
314293
Anthropic.Messages = Messages;
315294
Anthropic.Beta = Beta;
316-
317295
export declare namespace Anthropic {
318296
export type RequestOptions = Core.RequestOptions;
319297

@@ -384,5 +362,23 @@ export declare namespace Anthropic {
384362
type BetaRateLimitError as BetaRateLimitError,
385363
};
386364
}
365+
export const { HUMAN_PROMPT, AI_PROMPT } = Anthropic;
366+
367+
export { toFile, fileFromPath } from '@anthropic-ai/sdk/uploads';
368+
export {
369+
AnthropicError,
370+
APIError,
371+
APIConnectionError,
372+
APIConnectionTimeoutError,
373+
APIUserAbortError,
374+
NotFoundError,
375+
ConflictError,
376+
RateLimitError,
377+
BadRequestError,
378+
AuthenticationError,
379+
InternalServerError,
380+
PermissionDeniedError,
381+
UnprocessableEntityError,
382+
} from '@anthropic-ai/sdk/error';
387383

388384
export default Anthropic;

0 commit comments

Comments
 (0)