Skip to content

Commit

Permalink
format(): make the second parameter optional again
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre committed Feb 14, 2023
1 parent 76cfdfd commit 5e3f3a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function format(
optionsOrDigits: Parameters<typeof toParts>[1] & {
compact?: boolean;
locale?: ConstructorParameters<typeof Intl.NumberFormat>[0];
},
} = {},
): string {
const options = typeof optionsOrDigits === "number"
? { digits: optionsOrDigits }
Expand Down

0 comments on commit 5e3f3a5

Please sign in to comment.