diff --git a/.changeset/famous-moles-shave.md b/.changeset/famous-moles-shave.md
new file mode 100644
index 0000000..a70bcfa
--- /dev/null
+++ b/.changeset/famous-moles-shave.md
@@ -0,0 +1,5 @@
+---
+"@soundxyz/redis-pubsub": major
+---
+
+Separate input from output of inputSchema and outputSchema
diff --git a/src/index.ts b/src/index.ts
index bc11877..f286462 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -57,7 +57,7 @@ export const EventCodes = {
SUBSCRIPTION_ABORTED: "SUBSCRIPTION_ABORTED",
} as const;
-export type EventCodes = typeof EventCodes[keyof typeof EventCodes];
+export type EventCodes = (typeof EventCodes)[keyof typeof EventCodes];
export function RedisPubSub({
publisher,
@@ -270,7 +270,7 @@ export function RedisPubSub({
);
}
- function createChannel({
+ function createChannel({
name,
isLazy = true,
...schemas
@@ -282,12 +282,12 @@ export function RedisPubSub({
isLazy?: boolean;
} & (
| {
- inputSchema: ZodSchema;
- outputSchema: ZodSchema