Skip to content

Commit

Permalink
fix: Update TypeScript types to fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent aa5f8d1 commit 81d6a41
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export default connect((state: AppState) => {
formSyncErrors?: FormErrors<string, string>;
closeModal: () => void;
integrationName: string;
onSubmit?: () => void;
}
>({
validate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export default connect((state: AppState) => {
{
formSyncErrors?: FormErrors<string, string>;
closeModal: () => void;
onSubmit?: () => void;
}
>({
validate,
Expand Down
2 changes: 1 addition & 1 deletion app/client/src/pages/setup/UserWelcomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const ActionContainer = styled.div`

interface LandingPageProps {
// To have a get started button click function for non super user form
onGetStarted?: (proficiency?: string, useCase?: string) => void;
onGetStarted?: ((proficiency?: string | undefined, useCase?: string | undefined) => void) | undefined;
// Property to determine whether the user is super admin or not
isSuperUser: boolean;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import type {
} from "deep-diff";
import { isEmpty, partition } from "lodash";

export function groupDifferencesByType(differences: Diff<unknown>[]): {
edits: DiffEdit<unknown, unknown>[];
additions: DiffNew<unknown>[];
deletions: DiffDeleted<unknown>[];
export function groupDifferencesByType(differences: Array<Diff<unknown>>): {
edits: Array<DiffEdit<unknown, unknown>>;
additions: Array<DiffNew<unknown>>;
deletions: Array<DiffDeleted<unknown>>;
} {
if (isEmpty(differences)) return { edits: [], additions: [], deletions: [] };

Expand Down

0 comments on commit 81d6a41

Please sign in to comment.