mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
fix(webhooks): fix build error from union type indexing in processTriggerFileOutputs
Cast array initializer to Record<string, unknown> to allow string indexing while preserving array runtime semantics for the return value.
This commit is contained in:
@@ -69,7 +69,7 @@ async function processTriggerFileOutputs(
|
||||
return input
|
||||
}
|
||||
|
||||
const processed: Record<string, unknown> | unknown[] = Array.isArray(input) ? [] : {}
|
||||
const processed = (Array.isArray(input) ? [] : {}) as Record<string, unknown>
|
||||
|
||||
for (const [key, value] of Object.entries(input)) {
|
||||
const currentPath = path ? `${path}.${key}` : key
|
||||
|
||||
Reference in New Issue
Block a user