Skip to content

Commit

Permalink
fix(TypeScript): correct typing on Session (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Magnesium38 committed Feb 22, 2021
1 parent df8501c commit d8d96bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ export type SessionOptions = {
export type Handler = (req: any, res: any) => any;

export type Session = {
set: <T = any>(name: string, value: T) => void;
set: <T = any>(name: string, value: T) => T;
get: <T = any>(name: string) => T | undefined;
unset: (name: string) => void;
destroy: () => void;
save: () => Promise<void>;
save: () => Promise<string>;
};

export type CookieOptions = {
Expand Down

1 comment on commit d8d96bc

@vercel
Copy link

@vercel vercel bot commented on d8d96bc Feb 22, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.