Skip to content

Commit 3d8f6d0

Browse files
committed
stronger typing
1 parent de4a768 commit 3d8f6d0

File tree

2 files changed

+4
-4
lines changed
  • apps/sim

2 files changed

+4
-4
lines changed

apps/sim/app/api/resume/[workflowId]/[executionId]/[contextId]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function POST(
2929

3030
const workflow = access.workflow
3131

32-
let payload: any = {}
32+
let payload: Record<string, unknown> = {}
3333
try {
3434
payload = await request.json()
3535
} catch {

apps/sim/tools/http/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@ export interface RequestParams {
44
url: string
55
method?: HttpMethod
66
headers?: TableRow[]
7-
body?: any
7+
body?: unknown
88
params?: TableRow[]
99
pathParams?: Record<string, string>
1010
formData?: Record<string, string | Blob>
1111
}
1212

1313
export interface RequestResponse extends ToolResponse {
1414
output: {
15-
data: any
15+
data: unknown
1616
status: number
1717
headers: Record<string, string>
1818
}
1919
}
2020

2121
export interface WebhookRequestParams {
2222
url: string
23-
body?: any
23+
body?: unknown
2424
secret?: string
2525
headers?: Record<string, string>
2626
}

0 commit comments

Comments
 (0)