Fix TypeScript strict errors for production build
This commit is contained in:
@@ -12,7 +12,13 @@ export async function createClient() {
|
||||
getAll() {
|
||||
return cookieStore.getAll();
|
||||
},
|
||||
setAll(cookiesToSet) {
|
||||
setAll(
|
||||
cookiesToSet: {
|
||||
name: string;
|
||||
value: string;
|
||||
options?: Parameters<typeof cookieStore.set>[2];
|
||||
}[]
|
||||
) {
|
||||
try {
|
||||
cookiesToSet.forEach(({ name, value, options }) =>
|
||||
cookieStore.set(name, value, options)
|
||||
|
||||
Reference in New Issue
Block a user