import { Digit } from ".."; import { IsUnion } from "../../../set"; type _IsDigitString = [ S ] extends [''] ? true : [S] extends [`${Digit}${infer Rest}`] ? _IsDigitString : false; /** * checks whether a string is a digit string * * returns `false` on encountering union types * * @since 0.0.6 */ export type IsDigitString = S extends '' ? false : IsUnion extends true ? false : _IsDigitString; export {}; //# sourceMappingURL=is-digit-string.d.ts.map