Skip to content

Commit bf4f879

Browse files
committed
cleanup typing
1 parent 2327844 commit bf4f879

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

apps/sim/executor/utils/block-data.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ function getInputFormatFields(block: SerializedBlock): OutputSchema {
4747
const schema: OutputSchema = {}
4848
for (const field of inputFormat) {
4949
if (!field.name) continue
50-
schema[field.name] = {
51-
type: (field.type || 'any') as 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any',
52-
}
50+
schema[field.name] = { type: field.type || 'any' }
5351
}
5452

5553
return schema
@@ -85,9 +83,7 @@ function getResponseFormatSchema(block: SerializedBlock): OutputSchema | undefin
8583

8684
const schema: OutputSchema = {}
8785
for (const field of fields) {
88-
schema[field.name] = {
89-
type: (field.type || 'any') as 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any',
90-
}
86+
schema[field.name] = { type: field.type || 'any' }
9187
}
9288
return schema
9389
}

0 commit comments

Comments
 (0)