From 4a8b8d5fa7494142f3302eddc4ca76d51764bcee Mon Sep 17 00:00:00 2001 From: "codegen-sh[bot]" <131295404+codegen-sh[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 22:19:11 +0000 Subject: [PATCH] fix: replace any types with unknown to fix linting errors --- app/scenes/Document/components/Editor.tsx | 2 +- plugins/slack/server/slack.ts | 4 ++-- server/queues/tasks/BaseTask.ts | 4 ++-- server/queues/tasks/EmailTask.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/scenes/Document/components/Editor.tsx b/app/scenes/Document/components/Editor.tsx index ca5dceebef..8430dc3a17 100644 --- a/app/scenes/Document/components/Editor.tsx +++ b/app/scenes/Document/components/Editor.tsx @@ -55,7 +55,7 @@ type Props = Omit & { * The main document editor includes an editable title with metadata below it, * and support for commenting. */ -function DocumentEditor(props: Props, ref: React.RefObject) { +function DocumentEditor(props: Props, ref: React.RefObject) { const titleRef = React.useRef(null); const { t } = useTranslation(); const match = useRouteMatch(); diff --git a/plugins/slack/server/slack.ts b/plugins/slack/server/slack.ts index f035cfb35d..20c6174043 100644 --- a/plugins/slack/server/slack.ts +++ b/plugins/slack/server/slack.ts @@ -6,7 +6,7 @@ import env from "./env"; const SLACK_API_URL = "https://slack.com/api"; -export async function post(endpoint: string, body: Record) { +export async function post(endpoint: string, body: Record) { let data; const token = body.token; @@ -30,7 +30,7 @@ export async function post(endpoint: string, body: Record) { return data; } -export async function request(endpoint: string, body: Record) { +export async function request(endpoint: string, body: Record) { let data; try { diff --git a/server/queues/tasks/BaseTask.ts b/server/queues/tasks/BaseTask.ts index 3b423fb1f8..1db3fee7f2 100644 --- a/server/queues/tasks/BaseTask.ts +++ b/server/queues/tasks/BaseTask.ts @@ -14,7 +14,7 @@ export enum TaskSchedule { Minute = "minute", } -export default abstract class BaseTask> { +export default abstract class BaseTask> { /** * An optional schedule for this task to be run automatically. */ @@ -43,7 +43,7 @@ export default abstract class BaseTask> { * @param props Properties to be used by the task * @returns A promise that resolves once the task has completed. */ - public abstract perform(props: T): Promise; + public abstract perform(props: T): Promise; /** * Handle failure when all attempts are exhausted for the task. diff --git a/server/queues/tasks/EmailTask.ts b/server/queues/tasks/EmailTask.ts index 618226bb81..433b302fcb 100644 --- a/server/queues/tasks/EmailTask.ts +++ b/server/queues/tasks/EmailTask.ts @@ -3,7 +3,7 @@ import BaseTask from "./BaseTask"; type Props = { templateName: string; - props: Record; + props: Record; }; export default class EmailTask extends BaseTask {