feat: add type definition and other function categories for number
This commit is contained in:
parent
183a894868
commit
040ec377a1
8 changed files with 26 additions and 6 deletions
|
@ -1,6 +1,4 @@
|
|||
export const number = {
|
||||
test: n => typeof n === 'number'
|
||||
}
|
||||
import {plain} from './tools.js'
|
||||
|
||||
export plain = f =>
|
||||
[Array(f.length).fill(number), {returns: number, behavior: f}]
|
||||
// Not much to do so far when there is only one type
|
||||
export const number = plain(a => a)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue