Skip to content

Commit 654f89b

Browse files
committed
Stricter types for constants
1 parent d64bdb1 commit 654f89b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const defaultOptions = {
1919
tolerance: defaultTolerance,
2020
fractionSlash: false,
2121
romanNumerals: false,
22-
} satisfies Required<FormatQuantityOptions>;
22+
} as const satisfies Required<FormatQuantityOptions>;
2323

2424
/**
2525
* Map of vulgar fractions to their traditional ASCII equivalents.
@@ -43,7 +43,7 @@ export const vulgarToAsciiMap = {
4343
'⅜': '3/8',
4444
'⅝': '5/8',
4545
'⅞': '7/8',
46-
} satisfies Record<VulgarFraction, SimpleFraction>;
46+
} as const satisfies Record<VulgarFraction, SimpleFraction>;
4747

4848
/**
4949
* Map of "close enough" decimal values to the {@link VulgarFraction} or

0 commit comments

Comments
 (0)