Skip to content

oracular / PresetSource

Interface: PresetSource ​

Defined in: types.ts:510

Where a preset's numbers come from, as presetSources in oracular/presets reports it. A tuned preset was fitted by oracular tune on a real log and carries the sample behind it; a hand-written one is a careful guess nobody has measured. Either is a starting point: run in shadow mode and let tune replace it with your own numbers.

Example ​

ts
import { presetSources } from 'oracular/presets';
presetSources.willBuy.kind; // 'tuned'

Properties ​

PropertyTypeDescriptionDefined in
episodesnumber | nullCounted episodes behind a tuned preset; null for a hand-written one.types.ts:515
installsnumber | nullInstalls those episodes came from; null for a hand-written one.types.ts:517
kind"tuned" | "hand-written"-types.ts:511
notestringWhat the numbers were fitted on, or where the guess comes from.types.ts:513

Released under the MIT License.