Skip to content

Add navigateToReportWithPolicyCheck #608

Add navigateToReportWithPolicyCheck

Add navigateToReportWithPolicyCheck #608

Triggered via pull request September 20, 2024 10:06
Status Failure
Total duration 4m 0s
Artifacts

typecheck.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
typecheck: src/libs/Navigation/AppNavigator/Navigators/WorkspaceSplitNavigator.tsx#L4
'"@libs/Navigation/types"' has no exported member named 'WorkspaceNavigatorParamList'. Did you mean 'WorkspaceSplitNavigatorParamList'?
typecheck: src/libs/Navigation/AppNavigator/createCustomFullScreenNavigator/index.tsx#L8
Cannot find module './CustomFullScreenRouter' or its corresponding type declarations.
typecheck: src/libs/Navigation/AppNavigator/createCustomFullScreenNavigator/index.tsx#L9
Cannot find module './types' or its corresponding type declarations.
typecheck: src/libs/Navigation/AppNavigator/createCustomStackNavigator/index.tsx#L17
Argument of type '(options: StackRouterOptions) => { getStateForAction(state: StackNavigationState<ParamListBase>, action: Action | StackActionType | CustomRootStackActionType, configOptions: RouterConfigOptions): StackNavigationState<...> | ... 2 more ... | undefined; ... 6 more ...; actionCreators?: ActionCreators<...> | undefined; }' is not assignable to parameter of type 'RouterFactory<StackNavigationState<ParamListBase>, any, StackRouterOptions>'.
typecheck: src/libs/Navigation/AppNavigator/getPartialStateDiff.ts#L6
Module '"/home/runner/work/expensify-app-fork/expensify-app-fork/src/libs/ObjectUtils"' has no default export. Did you mean to use 'import { shallowCompare } from "/home/runner/work/expensify-app-fork/expensify-app-fork/src/libs/ObjectUtils"' instead?
typecheck: src/libs/Navigation/Navigation.ts#L180
Expected 2 arguments, but got 4.
typecheck: src/libs/Navigation/linkTo/index.ts#L8
Module '"/home/runner/work/expensify-app-fork/expensify-app-fork/src/libs/ObjectUtils"' has no default export. Did you mean to use 'import { shallowCompare } from "/home/runner/work/expensify-app-fork/expensify-app-fork/src/libs/ObjectUtils"' instead?
typecheck: src/libs/Navigation/linkTo/index.ts#L136
Property 'metainfo' does not exist on type 'GetAdaptedStateReturnType'.
typecheck: src/libs/Navigation/linkingConfig/customGetPathFromState.ts#L15
Property 'policyID' does not exist on type 'object | Readonly<{ screen?: undefined; params?: undefined; initial?: undefined; path?: string | undefined; state: Readonly<{ key: string; index: number; routeNames: string[]; history?: unknown[] | undefined; routes: NavigationRoute<...>[]; type: string; stale: false; }> | PartialState<...> | undefined; }> | ... 97 ...'.
typecheck: src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts#L104
Type 'string' is not assignable to type 'never'.