Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

Fixed cookie value type #8754

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/nuxt/src/app/composables/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ export interface CookieOptions<T = any> extends _CookieOptions {
default?: () => T | Ref<T>
}

export interface CookieRef<T> extends Ref<T> {}
export interface CookieRef<T> extends Ref<T> {
value: T | null | undefined;
}

const CookieDefaults: CookieOptions<any> = {
path: '/',
Expand Down