Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): add missing SessionObject#options() definition #289

Merged

Conversation

chrisdickinson
Copy link
Contributor

Use the CookieOptions interface since it's more local (& seems accurate.) Thanks to @CamParry for identifying that.

Note: eslint on latest complained about the imports in the type, so I had to split them up. (Specifically it emitted import-x/no-named-default when run against the imports as originally authored, then import-x/no-duplicates when I split up the imports.)

Fixes #279.

I had to split up the import in types/t

Checklist

Use the `CookieOptions` interface since it's more local (& seems accurate.)
Thanks to @CamParry for identifying that.

Note: eslint on latest complained about the imports in the type, so I had to split them
up. (Specifically it emitted `import-x/no-named-default` when run against the imports as
originally authored, then `import-x/no-duplicates` when I split up the imports.)

Fixes fastify#279.

I had to split up the import in types/t
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 07f1611 into fastify:master Jan 9, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

session.options() type is missing from FastifySessionObject in types.d.ts
2 participants