Skip to content

Commit 19a0ef4

Browse files
[WEB-5423] fix: typescript errors and add types check step to pull request workflow (#8110)
1 parent 4e357c4 commit 19a0ef4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+139
-162
lines changed

.github/workflows/pull-request-build-lint-web-apps.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,8 @@ jobs:
4949
- name: Check Affected format
5050
run: pnpm turbo run check:format --affected
5151

52+
- name: Check Affected types
53+
run: pnpm turbo run check:types --affected
54+
5255
- name: Build Affected
5356
run: pnpm turbo run build --affected

apps/admin/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.next/*
2+
.react-router/*
3+
.vite/*
24
out/*
35
public/*
46
dist/*

apps/admin/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.next
2+
.react-router
3+
.vite
24
.vercel
35
.tubro
46
out/

apps/space/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.next/*
2+
.react-router/*
3+
.vite/*
24
out/*
35
public/*
46
dist/*

apps/space/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.next
2+
.react-router
3+
.vite
24
.vercel
35
.tubro
46
out/

apps/web/app/(all)/installations/[provider]/layout.tsx

Lines changed: 0 additions & 8 deletions
This file was deleted.

apps/web/app/(all)/installations/[provider]/page.tsx

Lines changed: 0 additions & 76 deletions
This file was deleted.

apps/web/ce/components/command-palette/power-k/context-detector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Params } from "next/dist/shared/lib/router/utils/route-matcher";
1+
import type { Params } from "react-router";
22
// local imports
33
import type { TPowerKContextTypeExtended } from "./types";
44

apps/web/ce/components/cycles/analytics-sidebar/base.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"use client";
2-
import type { FC } from "react";
2+
33
import { Fragment } from "react";
44
import { observer } from "mobx-react";
55
// plane imports
@@ -19,7 +19,7 @@ type ProgressChartProps = {
1919
projectId: string;
2020
cycleId: string;
2121
};
22-
export const SidebarChart: FC<ProgressChartProps> = observer((props) => {
22+
export const SidebarChart = observer((props: ProgressChartProps) => {
2323
const { workspaceSlug, projectId, cycleId } = props;
2424

2525
// hooks

apps/web/ce/store/user/permission.store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class UserPermissionStore extends BaseUserPermissionStore implements IUse
1818
* @returns { EUserPermissions | undefined }
1919
*/
2020
getProjectRoleByWorkspaceSlugAndProjectId = computedFn(
21-
(workspaceSlug: string, projectId: string): EUserPermissions | undefined =>
21+
(workspaceSlug: string, projectId?: string): EUserPermissions | undefined =>
2222
this.getProjectRole(workspaceSlug, projectId)
2323
);
2424
}

0 commit comments

Comments
 (0)