* Adds the concept of, and options for, the return typing strategy * adds the strategy at the beginning of every behavior index * adds the strategy as an additional argument to resolve * No actual use of return type strategy so far * Sets up eslint * Fixes eslint errors
11 lines
397 B
JavaScript
11 lines
397 B
JavaScript
import {ImplementationsGenerator} from './Implementations.js'
|
|
import {ReturnTyping} from './Type.js'
|
|
import {match, Passthru} from './TypePatterns.js'
|
|
|
|
export const config = new ImplementationsGenerator(() => match(Passthru, {
|
|
// default comparison tolerances:
|
|
relTol: 1e-12,
|
|
absTol: 1e-15,
|
|
// Strategy for choosing operation return types:
|
|
returnTyping: ReturnTyping.free,
|
|
}))
|