UNPKG

@kentcdodds/tmp-remix-utils

Version:

This package contains simple utility functions to use with [Remix.run](https://remix.run).

9 lines (8 loc) 304 B
import type { Cookie } from "@remix-run/server-runtime"; import { z } from "zod"; import { TypedCookie } from "./typed-cookie.js"; export declare function rollingCookie<Schema extends z.ZodTypeAny>( cookie: Cookie | TypedCookie<Schema>, request: Request, responseHeaders: Headers ): Promise<void>;