Skip to main content

Function: getConfig()

getConfig(): SdvConfig

Defined in: src/core/config.ts:210

A copy of the user configuration (family runtime defaults are not included).

Returns​

SdvConfig

A fresh SdvConfig: the transport and auth maps are shallow copies, so mutating the result never changes the live configuration.

Example​

import { configure, getConfig } from 'sportsdataverse';

configure({ retries: 5 });
getConfig().retries; // 5
getConfig().timeoutMs; // 30000 (the built-in default)

Remarks​

To see what a family will actually use once its registered defaults are applied, call resolveFamily (not re-exported from the package root).