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
| Property | Type | Description | Defined in |
|---|---|---|---|
episodes | number | null | Counted episodes behind a tuned preset; null for a hand-written one. | types.ts:515 |
installs | number | null | Installs those episodes came from; null for a hand-written one. | types.ts:517 |
kind | "tuned" | "hand-written" | - | types.ts:511 |
note | string | What the numbers were fitted on, or where the guess comes from. | types.ts:513 |