[WEB-5423] fix: typescript errors and add types check step to pull request workflow (#8110)

This commit is contained in:
Prateek Shourya 2025-11-14 16:18:36 +05:30 committed by GitHub
parent 4e357c4ad0
commit 19a0ef490b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 139 additions and 162 deletions

View file

@ -1,4 +1,4 @@
import type { Params } from "next/dist/shared/lib/router/utils/route-matcher";
import type { Params } from "react-router";
// local imports
import type { TPowerKContextTypeExtended } from "./types";

View file

@ -1,5 +1,5 @@
"use client";
import type { FC } from "react";
import { Fragment } from "react";
import { observer } from "mobx-react";
// plane imports
@ -19,7 +19,7 @@ type ProgressChartProps = {
projectId: string;
cycleId: string;
};
export const SidebarChart: FC<ProgressChartProps> = observer((props) => {
export const SidebarChart = observer((props: ProgressChartProps) => {
const { workspaceSlug, projectId, cycleId } = props;
// hooks

View file

@ -18,7 +18,7 @@ export class UserPermissionStore extends BaseUserPermissionStore implements IUse
* @returns { EUserPermissions | undefined }
*/
getProjectRoleByWorkspaceSlugAndProjectId = computedFn(
(workspaceSlug: string, projectId: string): EUserPermissions | undefined =>
(workspaceSlug: string, projectId?: string): EUserPermissions | undefined =>
this.getProjectRole(workspaceSlug, projectId)
);
}