Skip to content

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

Merged
mcollina merged 1 commit intofastify:masterfrom
chrisdickinson:chris/20250107-add-missing-type
Jan 9, 2025
Merged

fix(types): add missing SessionObject#options() definition#289
mcollina merged 1 commit intofastify:masterfrom
chrisdickinson:chris/20250107-add-missing-type

Conversation

@chrisdickinson
Copy link
Copy Markdown
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
Copy Markdown
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
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