diff --git a/apps/builder/src/features/credentials/components/CredentialsSettingsForm.tsx b/apps/builder/src/features/credentials/components/CredentialsSettingsForm.tsx index 67269e853..43534c25d 100644 --- a/apps/builder/src/features/credentials/components/CredentialsSettingsForm.tsx +++ b/apps/builder/src/features/credentials/components/CredentialsSettingsForm.tsx @@ -360,7 +360,9 @@ const CredentialsItem = ({ const groupCredentialsByType = ( credentials: CredentialsInfo[], ): Record => { - const groupedCredentials: any = {}; + const groupedCredentials = {} as { + [key in CredentialsInfo["type"]]: CredentialsInfo[]; + }; credentials.forEach((cred) => { if (!groupedCredentials[cred.type]) { groupedCredentials[cred.type] = []; diff --git a/apps/builder/src/features/results/components/table/IndeterminateCheckbox.tsx b/apps/builder/src/features/results/components/table/IndeterminateCheckbox.tsx index 07fcc13ad..af4a74b92 100644 --- a/apps/builder/src/features/results/components/table/IndeterminateCheckbox.tsx +++ b/apps/builder/src/features/results/components/table/IndeterminateCheckbox.tsx @@ -1,12 +1,17 @@ -import { Checkbox, Flex } from "@chakra-ui/react"; +import { Checkbox, type CheckboxProps, Flex } from "@chakra-ui/react"; import React from "react"; +type TableCheckBoxProps = { + indeterminate: boolean; + checked: boolean; +} & Omit; + const TableCheckBox = ( - { indeterminate, checked, ...rest }: any, + { indeterminate, checked, ...rest }: TableCheckBoxProps, ref: React.LegacyRef, ) => { const defaultRef = React.useRef(); - const resolvedRef: any = ref || defaultRef; + const resolvedRef = ref || defaultRef; return ( diff --git a/apps/landing-page/app/components/NotFound.tsx b/apps/landing-page/app/components/NotFound.tsx index e791706fd..394a8949e 100644 --- a/apps/landing-page/app/components/NotFound.tsx +++ b/apps/landing-page/app/components/NotFound.tsx @@ -1,6 +1,7 @@ import { Link } from "@tanstack/react-router"; +import type { ReactNode } from "react"; -export const NotFound = ({ children }: { children?: any }) => { +export const NotFound = ({ children }: { children?: ReactNode }) => { return (
diff --git a/packages/variables/src/extractVariablesFromObject.ts b/packages/variables/src/extractVariablesFromObject.ts index 04cdabf0e..9260b288c 100644 --- a/packages/variables/src/extractVariablesFromObject.ts +++ b/packages/variables/src/extractVariablesFromObject.ts @@ -2,8 +2,8 @@ import type { Variable } from "./schemas"; const variableNameRegex = /\{\{([^{}]+)\}\}/g; -export const extractVariableIdReferencesInObject = ( - obj: any, +export const extractVariableIdReferencesInObject = ( + obj: T, existingVariables: Variable[], ): string[] => [...(JSON.stringify(obj).match(variableNameRegex) ?? [])].reduce(