Skip to content

Commit

Permalink
fix: export types
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Dec 26, 2021
1 parent 7c8cd77 commit 82a2ca8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/index.ts
@@ -1,4 +1,8 @@
type Options = {
export type Cookies = {
[name: string]: string
}

export type Options = {
domain?: string
expires?: Date | string
httpOnly?: boolean
Expand Down Expand Up @@ -40,9 +44,7 @@ const serializers = {
secure: bool,
}

export function parse(header: string): {
[name: string]: string
} {
export function parse(header: string): Cookies {
const cookies = {}
const parts = header
.split(';')
Expand Down

0 comments on commit 82a2ca8

Please sign in to comment.