diff --git a/.changeset/wise-knives-argue.md b/.changeset/wise-knives-argue.md new file mode 100644 index 000000000..49b2fdbe7 --- /dev/null +++ b/.changeset/wise-knives-argue.md @@ -0,0 +1,5 @@ +--- +"inngest": patch +--- + +Add exports for `JsonError` type to fix a TypeScript error when using Inngest in projects with `composite` setting in `tsconfig`. diff --git a/packages/inngest/src/index.ts b/packages/inngest/src/index.ts index 575c4231c..353d1ea84 100644 --- a/packages/inngest/src/index.ts +++ b/packages/inngest/src/index.ts @@ -91,6 +91,7 @@ export type { FailureEventPayload, FinishedEventPayload, Handler, + JsonError, LogLevel, OutgoingOp, RegisterOptions, diff --git a/packages/inngest/test/composite_project/src/index.ts b/packages/inngest/test/composite_project/src/index.ts index 8a956892b..cf04b0a9b 100644 --- a/packages/inngest/test/composite_project/src/index.ts +++ b/packages/inngest/test/composite_project/src/index.ts @@ -1,5 +1,8 @@ import * as Inngest from "inngest"; +// Prove certain types are exported and can be used +type CatchAll = Inngest.JsonError; + export const inngest = new Inngest.Inngest({ id: "me", schemas: new Inngest.EventSchemas().fromRecord<{