diff --git a/packages/inngest/src/helpers/jsonify.test.ts b/packages/inngest/src/helpers/jsonify.test.ts index ad18cd7d..c6471266 100644 --- a/packages/inngest/src/helpers/jsonify.test.ts +++ b/packages/inngest/src/helpers/jsonify.test.ts @@ -26,6 +26,13 @@ describe("Jsonify", () => { assertType>(true); }); + test("#513 appropriately types `string | null`", () => { + type Actual = Jsonify; + type Expected = string | null; + assertType>(false); + assertType>(true); + }); + describe("object", () => { test("allows `any`", () => { type Actual = Jsonify<{ foo: any }>; @@ -50,5 +57,12 @@ describe("Jsonify", () => { type Expected = { foo: "bar" }; assertType>(true); }); + + test("#513 appropriately types `string | null`", () => { + type Actual = Jsonify<{ foo: string | null }>; + type Expected = { foo: string | null }; + assertType>(false); + assertType>(true); + }); }); });