UNPKG

nuxt

Version:

Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.

23 lines • 616 B
//#region src/app/types/cookie.d.ts /** * Options for writing a cookie, covering the `Set-Cookie` attributes of RFC 6265 and its * extensions. * * @since 4.6.0 */ export interface CookieSerializeOptions { maxAge?: number; expires?: Date; domain?: string; path?: string; httpOnly?: boolean; secure?: boolean; partitioned?: boolean; priority?: 'low' | 'medium' | 'high'; sameSite?: boolean | 'lax' | 'strict' | 'none'; /** Defaults to `encodeURIComponent`. */ encode?: (value: string) => string; /** Defaults to `JSON.stringify`. */ stringify?: (value: unknown) => string; } //#endregion