[WEB-5423] fix: typescript errors and add types check step to pull request workflow (#8110)
This commit is contained in:
parent
4e357c4ad0
commit
19a0ef490b
41 changed files with 139 additions and 162 deletions
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue