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

[feat] Add a State type export #197

Open
2 tasks done
shellscape opened this issue Apr 30, 2023 · 0 comments
Open
2 tasks done

[feat] Add a State type export #197

shellscape opened this issue Apr 30, 2023 · 0 comments

Comments

@shellscape
Copy link

shellscape commented Apr 30, 2023

Describe the feature

I'd like to have a State type export so that I don't have to manually construct the state for each app I use this package in. e.g.

export interface State extends Koa.DefaultState {
  // include the [key]: JwtPayload  property
  jwtOriginalError?: Error
}

Checklist

  • I have searched through GitHub issues for similar issues.
  • I have completely read through the README and documentation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant