Skip to content

[feat] Add a State type export #197

@shellscape

Description

@shellscape

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions