Skip to content

Commit 87b4fb1

Browse files
committed
Export types Digit and NonZeroDigit
1 parent 29503da commit 87b4fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ export interface FormatQuantity {
3939
}
4040

4141
/** Any numeric character. */
42-
type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
42+
export type Digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
4343
/** Any numeric character except '0'. */
44-
type NonZeroDigit = Exclude<Digit, '0'>;
44+
export type NonZeroDigit = Exclude<Digit, '0'>;
4545

4646
/**
4747
* Fraction string with either one or two numeric characters in both the

0 commit comments

Comments
 (0)