fix: checks #213
Errors 30
Found 30 errors
Annotations
github-actions / TypeCheck
Argument of type '{ nodeId: any; githubUserId: any; primaryInfo: any; secondaryInfo: any; imageSrc: any; }[]' is not assignable to parameter of type 'SuggestedItem[]'.
Argument of type '{ nodeId: any; githubUserId: any; primaryInfo: any; secondaryInfo: any; imageSrc: any; }[]' is not assignable to parameter of type 'SuggestedItem[]'.
Type '{ nodeId: any; githubUserId: any; primaryInfo: any; secondaryInfo: any; imageSrc: any; }' is missing the following properties from type 'SuggestedItem': id, name
Raw output
42 | const suggestUsers = async () => {
43 | const suggestedItems = await getSearchedUsers({ searchQuery: inputValue, toast })
> 44 | setSuggestedItems(suggestedItems)
| ^
45 | }
46 |
47 | suggestUsers()
github-actions / TypeCheck
Type '(document: Document, query: string, queryData: RequestParameters) => Promise<unknown>' is not assignable to type 'RequestOctokitGraphqlDataType'.
Type '(document: Document, query: string, queryData: RequestParameters) => Promise<unknown>' is not assignable to type 'RequestOctokitGraphqlDataType'.
Type 'Promise<unknown>' is not assignable to type 'Promise<GraphQlQueryResponseData>'.
Type 'unknown' is not assignable to type 'GraphQlQueryResponseData'.
Raw output
7 | import { createOctokitGraphqlClient } from '../client/index.js'
8 |
> 9 | export const requestOctokitGraphqlData: RequestOctokitGraphqlDataType = async (
| ^
10 | document,
11 | query,
12 | queryData
github-actions / TypeCheck
Type 'number' is not assignable to type 'boolean'.
Type 'number' is not assignable to type 'boolean'.
Raw output
44 |
45 | const { renderLayer, triggerProps, layerProps } = useLayer({
> 46 | isOpen: suggestedItems?.length,
| ^
47 | placement: 'bottom-start',
48 | overflowContainer: false,
49 | auto: true,
github-actions / TypeCheck
Type 'SuggestedItem[]' is not assignable to type 'SuggestedItemProps[]'.
Type 'SuggestedItem[]' is not assignable to type 'SuggestedItemProps[]'.
Property 'primaryInfo' is missing in type 'SuggestedItem' but required in type 'SuggestedItemProps'.
Raw output
65 | layerProps={layerProps}
66 | renderLayer={renderLayer}
> 67 | suggestedItems={suggestedItems}
| ^
68 | />
69 | </InputBox>
70 | )
github-actions / TypeCheck
Cannot invoke an object which is possibly 'null'.
Cannot invoke an object which is possibly 'null'.
Raw output
34 | itemData: SelectedItemProps
35 | ): void {
> 36 | selectedItemsDispatch({
| ^
37 | type: 'deleted',
38 | itemData,
39 | })
github-actions / TypeCheck
Property 'nodeId' is missing in type 'SelectedItemProps' but required in type 'SelectedItem'.
Property 'nodeId' is missing in type 'SelectedItemProps' but required in type 'SelectedItem'.
Raw output
36 | selectedItemsDispatch({
37 | type: 'deleted',
> 38 | itemData,
| ^
39 | })
40 | }
41 |
github-actions / TypeCheck
Type 'SelectedItem[] | null' is not assignable to type 'SelectedItemProps[]'.
Type 'SelectedItem[] | null' is not assignable to type 'SelectedItemProps[]'.
Type 'null' is not assignable to type 'SelectedItemProps[]'.
Raw output
12 |
13 | export const SelectedItems: FC = () => {
> 14 | const selectedItems: Array<SelectedItemProps> = useContext(SelectedItemsContext)
| ^
15 |
16 | return (
17 | <Condition match={!!selectedItems && !!selectedItems.length}>
github-actions / TypeCheck
Cannot invoke an object which is possibly 'null'.
Cannot invoke an object which is possibly 'null'.
Raw output
40 | itemData: SuggestedItemProps
41 | ): void {
> 42 | selectedItemsDispatch({
| ^
43 | type: 'added',
44 | itemData,
45 | })
github-actions / TypeCheck
Property 'nodeId' is missing in type 'SuggestedItemProps' but required in type 'SelectedItem'.
Property 'nodeId' is missing in type 'SuggestedItemProps' but required in type 'SelectedItem'.
Raw output
42 | selectedItemsDispatch({
43 | type: 'added',
> 44 | itemData,
| ^
45 | })
46 | suggestedItemsDispatch({
47 | type: 'clean',
github-actions / TypeCheck
Cannot invoke an object which is possibly 'null'.
Cannot invoke an object which is possibly 'null'.
Raw output
44 | itemData,
45 | })
> 46 | suggestedItemsDispatch({
| ^
47 | type: 'clean',
48 | })
49 | inputValueDispatch({
github-actions / TypeCheck
Cannot invoke an object which is possibly 'null'.
Cannot invoke an object which is possibly 'null'.
Raw output
47 | type: 'clean',
48 | })
> 49 | inputValueDispatch({
| ^
50 | type: 'clean',
51 | })
52 | }
github-actions / TypeCheck
Type 'ReactNode' is not assignable to type 'Element'.
Type 'ReactNode' is not assignable to type 'Element'.
Type 'undefined' is not assignable to type 'ReactElement<any, any>'.
Raw output
32 | return (
33 | <IconSwitchContainer ref={node} checked={checked} onClick={setChecked}>
> 34 | <ThumbComponent checked={checked}>{children}</ThumbComponent>
| ^
35 | </IconSwitchContainer>
36 | )
37 | }
github-actions / TypeCheck
Argument of type '{ nodeId: any; githubUserId: any; primaryInfo: any; secondaryInfo: any; imageSrc: any; }[]' is not assignable to parameter of type 'SuggestedItem[]'.
Argument of type '{ nodeId: any; githubUserId: any; primaryInfo: any; secondaryInfo: any; imageSrc: any; }[]' is not assignable to parameter of type 'SuggestedItem[]'.
Type '{ nodeId: any; githubUserId: any; primaryInfo: any; secondaryInfo: any; imageSrc: any; }' is missing the following properties from type 'SuggestedItem': id, name
Raw output
42 | const suggestUsers = async () => {
43 | const suggestedItems = await getSearchedUsers({ searchQuery: inputValue, toast })
> 44 | setSuggestedItems(suggestedItems)
| ^
45 | }
46 |
47 | suggestUsers()
Check failure on line 9 in globals/data/src/octokit-graphql/hooks/request-octokit-graphql.hook.ts
github-actions / TypeCheck
Type '(document: Document, query: string, queryData: RequestParameters) => Promise<unknown>' is not assignable to type 'RequestOctokitGraphqlDataType'.
Type '(document: Document, query: string, queryData: RequestParameters) => Promise<unknown>' is not assignable to type 'RequestOctokitGraphqlDataType'.
Type 'Promise<unknown>' is not assignable to type 'Promise<GraphQlQueryResponseData>'.
Raw output
7 | import { createOctokitGraphqlClient } from '../client/index.js'
8 |
> 9 | export const requestOctokitGraphqlData: RequestOctokitGraphqlDataType = async (
| ^
10 | document,
11 | query,
12 | queryData
Check failure on line 1 in mobile/app/app/(auth)/sign-in.ts
github-actions / TypeCheck
Cannot find module '@screens/sign-in' or its corresponding type declarations.
Cannot find module '@screens/sign-in' or its corresponding type declarations.
Raw output
> 1 | export { SignInScreen as default } from '@screens/sign-in'
| ^
2 |
Check failure on line 1 in mobile/app/app/dashboard.ts
github-actions / TypeCheck
Cannot find module '@screens/dashboard' or its corresponding type declarations.
Cannot find module '@screens/dashboard' or its corresponding type declarations.
Raw output
> 1 | export { DashboardScreen as default } from '@screens/dashboard'
| ^
2 |
Check failure on line 1 in mobile/app/app/index.tsx
github-actions / TypeCheck
Cannot find module 'react-native' or its corresponding type declarations.
Cannot find module 'react-native' or its corresponding type declarations.
Raw output
> 1 | import { Button } from 'react-native'
| ^
2 | import { useRouter } from 'expo-router'
3 | import React from 'react'
4 |
Check failure on line 2 in mobile/app/app/index.tsx
github-actions / TypeCheck
Cannot find module 'expo-router' or its corresponding type declarations.
Cannot find module 'expo-router' or its corresponding type declarations.
Raw output
1 | import { Button } from 'react-native'
> 2 | import { useRouter } from 'expo-router'
| ^
3 | import React from 'react'
4 |
5 | const App = () => {
Check failure on line 1 in mobile/app/app/src/(auth)/sign-in.ts
github-actions / TypeCheck
Cannot find module '@screens/sign-in' or its corresponding type declarations.
Cannot find module '@screens/sign-in' or its corresponding type declarations.
Raw output
> 1 | export { SignInScreen as default } from '@screens/sign-in'
| ^
2 |
Check failure on line 19 in ui/input/src/delete-button/delete-button.component.tsx
github-actions / TypeCheck
Type '(e: MouseEvent<HTMLButtonElement, MouseEvent>) => void' is not assignable to type 'MouseEventHandler<HTMLDivElement>'.
Type '(e: MouseEvent<HTMLButtonElement, MouseEvent>) => void' is not assignable to type 'MouseEventHandler<HTMLDivElement>'.
Types of parameters 'e' and 'event' are incompatible.
Type 'MouseEvent<HTMLDivElement, MouseEvent>' is not assignable to type 'MouseEvent<HTMLButtonElement, MouseEvent>'.
Type 'HTMLDivElement' is missing the following properties from type 'HTMLButtonElement': disabled, form, formAction, formEnctype, and 15 more.
Raw output
17 | export const DeleteButton: FC<DeleteButtonProps> = ({ deleteButton, onClick }) => (
18 | <Condition match={deleteButton}>
> 19 | <DeleteButtonContainer onClick={onClick}>
| ^
20 | <RemoveIcon />
21 | </DeleteButtonContainer>
22 | </Condition>
Check failure on line 46 in ui/input/src/select-input/select-input.component.tsx
github-actions / TypeCheck
Type 'number' is not assignable to type 'boolean'.
Type 'number' is not assignable to type 'boolean'.
Raw output
44 |
45 | const { renderLayer, triggerProps, layerProps } = useLayer({
> 46 | isOpen: suggestedItems?.length,
| ^
47 | placement: 'bottom-start',
48 | overflowContainer: false,
49 | auto: true,
Check failure on line 67 in ui/input/src/select-input/select-input.component.tsx
github-actions / TypeCheck
Type 'SuggestedItem[]' is not assignable to type 'SuggestedItemProps[]'.
Type 'SuggestedItem[]' is not assignable to type 'SuggestedItemProps[]'.
Property 'primaryInfo' is missing in type 'SuggestedItem' but required in type 'SuggestedItemProps'.
Raw output
65 | layerProps={layerProps}
66 | renderLayer={renderLayer}
> 67 | suggestedItems={suggestedItems}
| ^
68 | />
69 | </InputBox>
70 | )
Check failure on line 36 in ui/input/src/select-input/selected-item/selected-item.component.tsx
github-actions / TypeCheck
Cannot invoke an object which is possibly 'null'.
Cannot invoke an object which is possibly 'null'.
Raw output
34 | itemData: SelectedItemProps
35 | ): void {
> 36 | selectedItemsDispatch({
| ^
37 | type: 'deleted',
38 | itemData,
39 | })
Check failure on line 38 in ui/input/src/select-input/selected-item/selected-item.component.tsx
github-actions / TypeCheck
Property 'nodeId' is missing in type 'SelectedItemProps' but required in type 'SelectedItem'.
Property 'nodeId' is missing in type 'SelectedItemProps' but required in type 'SelectedItem'.
Raw output
36 | selectedItemsDispatch({
37 | type: 'deleted',
> 38 | itemData,
| ^
39 | })
40 | }
41 |
Check failure on line 14 in ui/input/src/select-input/selected-items/selected-items.component.tsx
github-actions / TypeCheck
Type 'SelectedItem[] | null' is not assignable to type 'SelectedItemProps[]'.
Type 'SelectedItem[] | null' is not assignable to type 'SelectedItemProps[]'.
Type 'null' is not assignable to type 'SelectedItemProps[]'.
Raw output
12 |
13 | export const SelectedItems: FC = () => {
> 14 | const selectedItems: Array<SelectedItemProps> = useContext(SelectedItemsContext)
| ^
15 |
16 | return (
17 | <Condition match={!!selectedItems && !!selectedItems.length}>