Skip to content

Commit

Permalink
fix: type error (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
D-Sketon committed Feb 11, 2024
1 parent a725987 commit 1cf5b21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gravatar.ts
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 1cf5b21

Please sign in to comment.