Skip to content

Commit

Permalink
Remove NonNullable filter on output generic
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloSzx committed Jul 21, 2023
1 parent 58a7345 commit c6acdf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/forty-toes-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@soundxyz/redis-pubsub": patch
---

Remove NonNullable filter on output schema generic
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ export function RedisPubSub({
} & (
| {
inputSchema: ZodSchema<Maybe<ChannelData>, ZodTypeDef, PublishInput>;
outputSchema: ZodSchema<SubscriberData, ZodTypeDef, NonNullable<ChannelData>>;
outputSchema: ZodSchema<SubscriberData, ZodTypeDef, ChannelData>;
schema?: never;
}
| {
Expand Down

0 comments on commit c6acdf9

Please sign in to comment.