(config: SimDeckClientConfig)
| 7 | }; |
| 8 | |
| 9 | export function configureSimDeckClient(config: SimDeckClientConfig): void { |
| 10 | clientConfig = { |
| 11 | ...clientConfig, |
| 12 | ...config, |
| 13 | apiRoot: normalizeRoot(config.apiRoot ?? clientConfig.apiRoot), |
| 14 | }; |
| 15 | } |
| 16 | |
| 17 | export function apiRoot(): string { |
| 18 | return clientConfig.apiRoot; |
no test coverage detected