Skip to content

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.

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.

(input, init?): Promise<Response>;

MDN Reference

ParameterType
inputURL | RequestInfo
init?RequestInit

Promise<Response>

(input, init?): Promise<Response>;

MDN Reference

ParameterType
inputstring | URL | Request
init?RequestInit

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.

number