Okay, someone else made something called numeric-types already

This commit is contained in:
Jeff 2024-02-28 23:05:12 -05:00
parent cccf9c1893
commit 3e14a77a5e
2 changed files with 6 additions and 4 deletions

View File

@ -1,20 +1,22 @@
# Numeric Types
# Math Types
A typescript library that aims to provide performant arithmetic types.
# Limitations
Currently numeric-types does not support negative numbers, decimals, or bigints.
Currently math-types does not support negative numbers, decimals, or bigints.
# Types
### Add<A extends number, B extends number>
Resolves to the sum of A and B
The corresponding function `add` uses this type
### Max<A extends number, B extends number>
Resolves to the larger of A and B
The corresponding function `max` uses this type
# Current Roadmap

View File

@ -1,5 +1,5 @@
{
"name": "numeric-types",
"name": "math-types",
"version": "0.0.1",
"description": "",
"main": "index.js",
@ -11,5 +11,5 @@
"dependencies": {
"typescript": "^5.3.3"
},
"keywords": ["typescript", "math", "numeric", "add", "max"]
"keywords": ["typescript", "math", "add", "max"]
}