Discriminated union of all built-in indicator configurations. Users of
the React/Vue wrappers construct these plain objects instead of calling
new SMA(20) directly — the wrapper then runs them through
createIndicator during reconciliation.
Adding a new indicator:
Add its type to the union below
Add a case in createIndicator
Add a case in indicatorId
The switch statements in both functions are marked never-exhaustive,
so forgetting one will fail typecheck.
Discriminated union of all built-in indicator configurations. Users of the React/Vue wrappers construct these plain objects instead of calling
new SMA(20)directly — the wrapper then runs them throughcreateIndicatorduring reconciliation.Adding a new indicator:
createIndicatorindicatorIdThe switch statements in both functions are marked
never-exhaustive, so forgetting one will fail typecheck.