feat: add type definition and other function categories for number

This commit is contained in:
Glen Whitney 2025-03-30 20:00:07 -07:00
parent 183a894868
commit 040ec377a1
8 changed files with 26 additions and 6 deletions

View file

@ -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)