UNPKG

sveltekit-flash-message

Version:

Send temporary data to the next request after redirect. Works with both SSR and client.

20 lines (19 loc) 609 B
import type { CookieSerializeOptions } from './cookie-es-main/types.js'; export type FlashOptions = { clearArray: boolean; clearOnNavigate: boolean; clearAfterMs: number; flashCookieOptions: CookieSerializeOptions; }; export declare const defaultOptions: { clearArray: false; clearOnNavigate: true; clearAfterMs: number; flashCookieOptions: { path: string; maxAge: number; httpOnly: false; sameSite: "strict"; }; }; export declare function mergeOptions(parentOptions: FlashOptions, options: Partial<FlashOptions> | undefined): FlashOptions;