Open lamuertepeluda opened 4 years ago
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.
Check out this fork: https://github.com/igorivaniuk/telegraf-session-redis
Hello,
I see getContext typings seems wrong: https://github.com/telegraf/telegraf-session-redis/blob/develop/lib/session.d.ts#L39
It is:
but I expected it to be:
and in the code it seems to work like the latter, i.e. returning an object.