Resolve a config value (SSM Parameter Store) at runtime. Same resolution
order as getSecret (env-first for local dev, then the injected locator).
Type safety.key is typed as ConfigKey — any string by default,
narrowing to your declared config keys after npm run typegen (see getSecret).
With config('K', { schema }) the return type is the schema's inferred output and
the value is JSON-parsed at runtime — no JSON.parse(...) and no any.
Resolve a config value (SSM Parameter Store) at runtime. Same resolution order as getSecret (env-first for local dev, then the injected locator).
Type safety.
keyis typed as ConfigKey — anystringby default, narrowing to your declared config keys afternpm run typegen(see getSecret). Withconfig('K', { schema })the return type is the schema's inferred output and the value is JSON-parsed at runtime — noJSON.parse(...)and noany.