Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Error in Typings #21

Open
lamuertepeluda opened this issue Mar 18, 2020 · 1 comment
Open

Error in Typings #21

lamuertepeluda opened this issue Mar 18, 2020 · 1 comment

Comments

@lamuertepeluda
Copy link

Hello,

I see getContext typings seems wrong:
https://github.com/telegraf/telegraf-session-redis/blob/develop/lib/session.d.ts#L39

It is:

getSession(key: Context): string;

but I expected it to be:

getSession(key: string): Context;

and in the code it seems to work like the latter, i.e. returning an object.

@dalechyn
Copy link

dalechyn commented May 30, 2020

Check out this fork: https://github.com/igorivaniuk/telegraf-session-redis

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants