Fix type: use third param type for cookies.set options

This commit is contained in:
Esdras Renan 2025-10-14 21:37:09 -03:00
parent b703561a7e
commit da339a767b
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ export async function POST(request: Request) {
const rec = toPairs(raw)
const name = String(rec.name)
const value = String(rec.value)
const options: Parameters<typeof response.cookies.set>[1] = {
const options: Parameters<typeof response.cookies.set>[2] = {
httpOnly: Boolean(rec["httponly"]) || /httponly/i.test(raw),
secure: /;\s*secure/i.test(raw),
path: typeof rec["path"] === "string" ? (rec["path"] as string) : "/",