Skip to content
Commit Detail

Commit 6b4a275

Author
Dillon Mulroy <dillon@cloudflare.com> 2026-04-30 19:23:50 -0400
Parents
a99ab15
Tree
f45a393
feat: add ArtifactsError and ArtifactsErrorCode type definitions

Add typed error surface for the Artifacts binding:

- ArtifactsErrorCode: union of all error code strings
- ArtifactsError: extends Error with readonly code, numericCode
- @throws annotations on all Artifacts and ArtifactsRepo methods

Follows the same interface-extends-Error pattern used by StreamError,
ImagesError, and MediaError.

Note: generated-snapshot/ needs regeneration via `just generate-types`.

Files changed

1 file changed~1 modified