getConfig

View as MarkdownOpen in Claude

Return a shallow copy of the entire loaded configuration. Python-compat alias for getAll(); the two are functionally identical. Use getConfig() when porting from the Python SDK.

Returns

Record<string, unknown> — a shallow copy of the top-level config object.

Example

1import { ConfigLoader } from '@signalwire/sdk';
2
3const loader = new ConfigLoader('config.json');
4const config = loader.getConfig();
5console.log(Object.keys(config));