MCPcopy Index your code
hub / github.com/simstudioai/sim / normalizeWebhookProviderConfig

Function normalizeWebhookProviderConfig

apps/sim/lib/webhooks/env-resolver.ts:27–33  ·  view source on GitHub ↗
(providerConfig: unknown)

Source from the content-addressed store, hash-verified

25 * Normalizes webhook provider config into a plain object for runtime resolution.
26 */
27export function normalizeWebhookProviderConfig(providerConfig: unknown): Record<string, unknown> {
28 if (providerConfig && typeof providerConfig === 'object' && !Array.isArray(providerConfig)) {
29 return providerConfig as Record<string, unknown>
30 }
31
32 return {}
33}
34
35/**
36 * Resolves environment variable references inside a webhook provider config object.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected