Okay, someone else made something called numeric-types already
This commit is contained in:
parent
cccf9c1893
commit
3e14a77a5e
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue