Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Feb 7, 2024
1 parent a725987 commit 344dfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gravatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function md5(str: BinaryLike) {
return createHash('md5').update(str).digest('hex');
}

function gravatarHelper(email: string, options: ParsedUrlQueryInput) {
function gravatarHelper(email: string, options?: ParsedUrlQueryInput | number) {
if (typeof options === 'number') {
options = {s: options};
}
Expand Down

0 comments on commit 344dfa0

Please sign in to comment.