Skip to content

Commit

Permalink
fix types.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
andreizanik committed Oct 12, 2021
1 parent bbc3d5f commit a3495fc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cookies-next",
"version": "2.0.1",
"version": "2.0.2",
"description": "Getting, setting and removing cookies on both client and server with next.js",
"main": "lib/index.js",
"type": "lib/index.d.ts",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { serialize, parse } from 'cookie';
import { OptionsType, TmpCookiesObj, CookieValueTypes } from './types';

Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import{ CookieSerializeOptions } from 'cookie';
import { CookieSerializeOptions } from 'cookie';
import { IncomingMessage, ServerResponse } from "http";

export interface OptionsType extends CookieSerializeOptions {
res?: ServerResponse;
req?: IncomingMessage & {
cookies:{ [key: string]: string; }
cookies?:{ [key: string]: string; }
}
}

Expand Down

0 comments on commit a3495fc

Please sign in to comment.