Skip to content

Commit

Permalink
Make TypedCookie take input type of schema (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsam committed May 13, 2024
1 parent b4a43fa commit bd9f42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/typed-cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export interface TypedCookie<Schema extends z.ZodTypeAny> extends Cookie {
): Promise<z.infer<Schema> | null>;

serialize(
value: z.infer<Schema>,
value: z.input<Schema>,
options?: CookieSerializeOptions,
): Promise<string>;
}
Expand Down

0 comments on commit bd9f42e

Please sign in to comment.