Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
This repository was archived by the owner on Dec 12, 2025. It is now read-only.

Enable concise syntax of response.cookie(...flagBag.cookie) #10

Description

@dferber90

This originally existed on an unreleased branch in 77bfb6f but had to be removed as a TypeScript warning appeared on the calling side of response.cookie(...flagBag.cookie):

A spread argument must either have a tuple type or be passed to a rest parameter.

The code works, but I could not figure out the correct type.

Reintroducing this would allow developers to use response.cookie(...flagBag.cookie) instead of response.cookie(...flagBag.cookie.args).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions