diff --git a/src/types/index.ts b/src/types/index.ts index 11a8daed..826c340c 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -37,6 +37,7 @@ export type { default as NullishBoolean } from './nullish-boolean.type' export type { default as NullishNumber } from './nullish-number.type' export type { default as NullishString } from './nullish-string.type' export type { default as NumberString } from './number-string.type' +export type { default as Numeric } from './numeric.type' export type { default as ObjectEmpty } from './object-empty.type' export type { default as ObjectPlain } from './object-plain.type' export type { default as ObjectUnknown } from './object-unknown.type' diff --git a/src/types/numeric.type.ts b/src/types/numeric.type.ts new file mode 100644 index 00000000..7ce6ca72 --- /dev/null +++ b/src/types/numeric.type.ts @@ -0,0 +1,11 @@ +/** + * @file Type Definitions - Numeric + * @module tutils/types/Numeric + */ + +/** + * A string that contains only numbers. + */ +type Numeric = `${number}` + +export default Numeric