Matches any digit as a string ('0'-'9').
import type {DigitCharacter} from 'type-fest';const a: DigitCharacter = '0'; // Valid// @ts-expect-errorconst b: DigitCharacter = 0; // Invalid Copy
import type {DigitCharacter} from 'type-fest';const a: DigitCharacter = '0'; // Valid// @ts-expect-errorconst b: DigitCharacter = 0; // Invalid
Matches any digit as a string ('0'-'9').