Skip to content

Commit

Permalink
refactor: more header type improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Smart committed Dec 5, 2022
1 parent c372187 commit 0f6416e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Interactions/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class BadWebhookSignature {
readonly _tag = "BadWebhookSignature"
}

export type Headers = Record<string, string | string[]>
export type Headers = Record<string, string | string[] | undefined>

const checkSignature = (publicKey: string, headers: Headers, body: string) =>
Maybe.struct({
Expand Down

0 comments on commit 0f6416e

Please sign in to comment.