Skip to content

Commit 501f711

Browse files
fix: replace any with Record<string, unknown> per code review
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 398d5a0 commit 501f711

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/tools/tiktok/list_videos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const tiktokListVideosTool: ToolConfig<TikTokListVideosParams, TikTokList
6363
}
6464
}
6565

66-
const videos: TikTokVideo[] = (data.data?.videos ?? []).map((video: any) => ({
66+
const videos: TikTokVideo[] = (data.data?.videos ?? []).map((video: Record<string, unknown>) => ({
6767
id: video.id ?? '',
6868
title: video.title ?? null,
6969
coverImageUrl: video.cover_image_url ?? null,

apps/sim/tools/tiktok/query_videos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const tiktokQueryVideosTool: ToolConfig<TikTokQueryVideosParams, TikTokQu
6060
}
6161
}
6262

63-
const videos: TikTokVideo[] = (data.data?.videos ?? []).map((video: any) => ({
63+
const videos: TikTokVideo[] = (data.data?.videos ?? []).map((video: Record<string, unknown>) => ({
6464
id: video.id ?? '',
6565
title: video.title ?? null,
6666
coverImageUrl: video.cover_image_url ?? null,

0 commit comments

Comments
 (0)