Skip to content

typscript conflict between @types/koa-session and @types/koa-generic-session #59

Open
@alsoscotland

Description

@alsoscotland

Thanks for maintaining the project. I am curious if there is an ETA or plan to accept
#35
#56

I am running into a typescript compilation error when trying to setup up a project with koa-redis/koa-session. I think the upgrade would alleviate the issue of conflicting session types in these two dependencies.

node_modules/@types/koa-session/index.d.ts:205:9 - error TS2717:
Subsequent property declarations must have the same type.  Property 'session' must be of type 'Session | null', but here has type 'Session | null'.

205         session: session.Session | null;
            ~~~~~~~

  node_modules/@types/koa-generic-session/index.d.ts:58:9
    58         session: koaSession.Session|null;
               ~~~~~~~
    'session' was also declared here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions