All checks were successful
/ test (pull_request) Successful in 17s
Establishes a global config object for a TypeDispatcher instance, so far with just properties representing comparison tolerances. Begins a "relational" group of functions with basic approximate equality, and an initial primitive ordering comparison. Ensures that methods that depend on properties of `config` will be properly updated when those properties change.
5 lines
226 B
JavaScript
5 lines
226 B
JavaScript
import {ImplementationsGenerator, onType} from '#core/helpers.js'
|
|
import {Passthru} from '#core/TypePatterns.js'
|
|
|
|
export const config = new ImplementationsGenerator(
|
|
() => onType(Passthru, {relTol: 1e-12, absTol: 1e-15}))
|