Skip to content

Commit

Permalink
Merge pull request #2944 from opral/lorissigrist/mesdk-140-expose-err…
Browse files Browse the repository at this point in the history
…or-types-that-are-part-of-the-external-api

Expose Error types that are part of the external api
  • Loading branch information
jldec authored Jun 18, 2024
2 parents 9276b3b + 8739851 commit 4cf8e09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-windows-divide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@inlang/sdk": patch
---

Expose `ModuleError`s, enabling more fine-grained error-handling in Apps.
7 changes: 7 additions & 0 deletions inlang/source-code/sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ export {
PluginLoadMessagesError,
PluginSaveMessagesError,
} from "./errors.js"
export {
ModuleError,
ModuleHasNoExportsError,
ModuleImportError,
ModuleExportIsInvalidError,
ModuleSettingsAreInvalidError,
} from "./resolve-modules/errors.js"

export { randomHumanId } from "./storage/human-id/human-readable-id.js"
export { normalizeMessage } from "./storage/helper.js"
Expand Down

0 comments on commit 4cf8e09

Please sign in to comment.