Skip to content

Commit

Permalink
feat(types): Numeric
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Mar 2, 2022
1 parent 73e55b4 commit 462f102
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
11 changes: 11 additions & 0 deletions src/types/numeric.type.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/**
* @file Type Definitions - Numeric
* @module tutils/types/Numeric
*/

/**
* A string that contains only numbers.
*/
type Numeric = `${number}`

export default Numeric

0 comments on commit 462f102

Please sign in to comment.