This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.
FrankfurterHistoricalOptions
Defined in: packages/engine/src/uom/FrankfurterHistoricalRates.ts:43
Options for createFrankfurterHistoricalRateProvider.
Properties
Section titled “Properties”fetch?
Section titled “fetch?”readonly optional fetch?: { (input, init?): Promise<Response>; (input, init?): Promise<Response>;};Defined in: packages/engine/src/uom/FrankfurterHistoricalRates.ts:48
The fetch to call, globalThis.fetch (read at call time) when omitted.
A test passes a stub here so no request leaves the process.
Call Signature
Section titled “Call Signature”(input, init?): Promise<Response>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | URL | RequestInfo |
init? | RequestInit |
Returns
Section titled “Returns”Promise<Response>
Call Signature
Section titled “Call Signature”(input, init?): Promise<Response>;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input | string | URL | Request |
init? | RequestInit |
Returns
Section titled “Returns”Promise<Response>
readonly optional now?: () => number;Defined in: packages/engine/src/uom/FrankfurterHistoricalRates.ts:50
The present moment in epoch milliseconds, for the future-date refusal. Date.now() when omitted.
Returns
Section titled “Returns”number