8000 Set `Session` type via module augmentation by emmatown · Pull Request #9578 · keystonejs/keystone · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Set Session type via module augmentation #9578

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

emmatown
Copy link
Member
@emmatown emmatown commented Apr 1, 2025

The Session type parameter in a number places in .keystone/types seems confusing and easy to mess up, this should be more straightforward since it only needs to be set once like this:

declare module ".keystone/types" {
  interface Session {
    something: string
  }
}

8000
@emmatown emmatown force-pushed the push-oynxlqvlmxwl branch from 3cccf17 to 1fd3ca9 Compare April 1, 2025 05:49
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.

1 participant
0