Skip to content

Commit

Permalink
Made Zod shim comment a little clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
jpwilliams committed Oct 9, 2023
1 parent bdfef87 commit 8a84110
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/inngest/src/helpers/validators/zod.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Shim for Zod types to ensure hopeful compatibility between minor versions to
* ensure that users can utilize the latest version of Zod without having to
* wait for Inngest to update.
* Shim for Zod types to ensure hopeful compatibility between minor versions;
* let developers the latest version of Zod without having to have Inngest match
* the same version.
*
* Feels weird to be using internal properties like this, but types break across
* minors anyway, so at least with this we rely on fewer fields staying the
* same.
*/
export type ZodLiteral<TValue = any> = {
get value(): TValue;
Expand Down

0 comments on commit 8a84110

Please sign in to comment.