fix: two files left out of last commit

This commit is contained in:
Glen Whitney 2023-01-21 20:01:16 -05:00
parent 7db6f38a30
commit f860fca03d
2 changed files with 13 additions and 0 deletions

2
src/generic/native.ts Normal file
View File

@ -0,0 +1,2 @@
export * from './arithmetic.js'
export * from './relational.js'

11
src/generic/relational.ts Normal file
View File

@ -0,0 +1,11 @@
import {Dependency, ImpType} from '../core/Dispatcher.js'
declare module "./type" {
interface GenericImpTypes<T> {
unequal: (a: T, b:T) => boolean
}
}
export const unequal =
<T>(dep: Dependency<'equal', [T,T]>): ImpType<'unequal', [T, T]> =>
(a, b) => !dep.equal(a, b)