fix(common): yarn check #446
Errors 37
Found 37 errors
Annotations
github-actions / TypeCheck
Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.
Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.
Raw output
16 | if (typeof body === 'string') {
17 | const parsedBody: object = await JSON.parse(body)
> 18 | const checkedBody = checkBookingDataHelper(parsedBody)
| ^
19 | await this.appointmentEntityRepository.writeData(checkedBody)
20 | return HttpStatus.OK
21 | }
github-actions / TypeCheck
Property 'carBodyItems' does not exist on type 'DocumentNode'.
Property 'carBodyItems' does not exist on type 'DocumentNode'.
Raw output
23 | private async getCarBodiesData(): ReturnDataType {
24 | const queryData = await this.apolloAdapterService.runQuery(GET_CAR_BODIES)
> 25 | const carBodiesQueryData: Awaited<ReturnDataType> = queryData.data.carBodyItems
| ^
26 | .nodes as Awaited<ReturnDataType>
27 | checkArrayLength({ carBodiesQueryData })
28 | return carBodiesQueryData
github-actions / TypeCheck
Property 'availableRadiusItems' does not exist on type 'DocumentNode'.
Property 'availableRadiusItems' does not exist on type 'DocumentNode'.
Raw output
23 | private async getRadiiData(): ReturnDataType {
24 | const queryData = await this.apolloAdapterService.runQuery(GET_AVAILABLE_RADII)
> 25 | const radiiQueryData: Awaited<ReturnDataType> = queryData.data.availableRadiusItems
| ^
26 | .nodes as Awaited<ReturnDataType>
27 | checkArrayLength({ radiiQueryData })
28 | return radiiQueryData
github-actions / TypeCheck
Property 'services' does not exist on type 'DocumentNode'.
Property 'services' does not exist on type 'DocumentNode'.
Raw output
20 | private async getServicesData(): ReturnServicesDataType {
21 | const queryData = await this.apolloAdapterService.runQuery(GET_SERVICES)
> 22 | const servicesQueryData = queryData.data.services.nodes
| ^
23 | checkArrayLength({ servicesQueryData })
24 | // eslint-disable-next-line @typescript-eslint/no-unsafe-return
25 | return servicesQueryData
github-actions / TypeCheck
Property 'contactItems' does not exist on type 'DocumentNode'.
Property 'contactItems' does not exist on type 'DocumentNode'.
Raw output
18 | private async getWorkTimeQueryData(): ReturnWorkTimeDataType {
19 | const queryData = await this.apolloAdapterService.runQuery(GET_CONTACTS)
> 20 | const workTimeData: Awaited<ReturnWorkTimeDataType> = queryData.data.contactItems
| ^
21 | .nodes as Awaited<ReturnWorkTimeDataType>
22 | return workTimeData
23 | }
github-actions / TypeCheck
Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.
Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.
Types of property 'userId' are incompatible.
Type 'any' is not assignable to type 'never'.
Raw output
17 | }
18 |
> 19 | const formattedContextChecked = checkFormattedContextHelper(formattedContext)
| ^
20 | return formattedContextChecked
21 | }
22 |
github-actions / TypeCheck
Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.
Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.
Type '{ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
Type '{ service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
Types of property 'carBody' are incompatible.
Type '{ wpVariant: string; aqsiVariant: string; }' is not assignable to type 'string'.
Raw output
76 | }
77 |
> 78 | return output
| ^
79 | }
80 |
github-actions / TypeCheck
Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.
Type '({ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; })[]' is not assignable to type 'ServicesDataToReplaceType'.
Type '{ service: string; radii: string; carBody: string; price: number; } | { service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
Type '{ service: string; radii: string; carBody: { wpVariant: string; aqsiVariant: string; }; price: number; }' is not assignable to type '{ service: string; carBody: string; radii: string; price: number; }'.
Types of property 'carBody' are incompatible.
Type '{ wpVariant: string; aqsiVariant: string; }' is not assignable to type 'string'.
Raw output
76 | }
77 |
> 78 | return output
| ^
79 | }
80 |
github-actions / TypeCheck
Property 'parent' does not exist on type '{ id: string; name: string; }'.
Property 'parent' does not exist on type '{ id: string; name: string; }'.
Raw output
12 |
13 | if (children) {
> 14 | children.forEach(({ id: childrenId, parent }) => {
| ^
15 | categoriesSpecification[childrenId] = parent
16 | })
17 | }
github-actions / TypeCheck
Property 'carBody' does not exist on type '{}'.
Property 'carBody' does not exist on type '{}'.
Raw output
8 | telegramFullName
9 | ) => {
> 10 | const { carBody, radii, service, commentary } = rawAppointmentData
| ^
11 | const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
12 | const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
13 |
github-actions / TypeCheck
Property 'radii' does not exist on type '{}'.
Property 'radii' does not exist on type '{}'.
Raw output
8 | telegramFullName
9 | ) => {
> 10 | const { carBody, radii, service, commentary } = rawAppointmentData
| ^
11 | const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
12 | const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
13 |
github-actions / TypeCheck
Property 'service' does not exist on type '{}'.
Property 'service' does not exist on type '{}'.
Raw output
8 | telegramFullName
9 | ) => {
> 10 | const { carBody, radii, service, commentary } = rawAppointmentData
| ^
11 | const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
12 | const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
13 |
github-actions / TypeCheck
Property 'commentary' does not exist on type '{}'.
Property 'commentary' does not exist on type '{}'.
Raw output
8 | telegramFullName
9 | ) => {
> 10 | const { carBody, radii, service, commentary } = rawAppointmentData
| ^
11 | const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
12 | const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
13 |
github-actions / TypeCheck
Property 'timeSlot' does not exist on type 'object'.
Property 'timeSlot' does not exist on type 'object'.
Raw output
9 | ) => {
10 | const { carBody, radii, service, commentary } = rawAppointmentData
> 11 | const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
| ^
12 | const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
13 |
14 | return {
github-actions / TypeCheck
Property 'timeSlot' does not exist on type 'object'.
Property 'timeSlot' does not exist on type 'object'.
Raw output
10 | const { carBody, radii, service, commentary } = rawAppointmentData
11 | const timeSlotStart = BigInt(rawAppointmentData.timeSlot.milliseconds as number)
> 12 | const timeSlotEnd = BigInt(Number(rawAppointmentData.timeSlot.milliseconds) + TIME_SLOT_STEP_MS)
| ^
13 |
14 | return {
15 | telegramUserId,
github-actions / TypeCheck
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'.
No index signature with a parameter of type 'string' was found on type '{}'.
Raw output
40 | if (this.checkWriteConversationDataCondition(checkAnswerResult)) {
41 | // eslint-disable-next-line no-param-reassign
> 42 | conversation.data[this.questionAnswerPairName] = checkAnswerResult
| ^
43 | }
44 |
45 | outputData = checkAnswerResult
github-actions / TypeCheck
'Container' cannot be used as a value because it was exported using 'export type'.
'Container' cannot be used as a value because it was exported using 'export type'.
Raw output
12 | const Radio = memo(({ children, checked, textTransform = 'lowercase' }: RadioProps) => (
13 | <Column width='100%'>
> 14 | <Container checked={checked}>
| ^
15 | <Checkmark checked={checked} textTransform={textTransform}>
16 | {children}
17 | </Checkmark>
github-actions / TypeCheck
'Container' cannot be used as a value because it was exported using 'export type'.
'Container' cannot be used as a value because it was exported using 'export type'.
Raw output
16 | {children}
17 | </Checkmark>
> 18 | </Container>
| ^
19 | </Column>
20 | ))
21 |
github-actions / TypeCheck
'Arrow' cannot be used as a value because it was exported using 'export type'.
'Arrow' cannot be used as a value because it was exported using 'export type'.
Raw output
47 | </TextEllipsis>
48 | <Layout flexGrow={1} />
> 49 | <Arrow isOpen={isOpen} />
| ^
50 | </Button>
51 | {renderMenu(
52 | <Menu {...menuProps}>
github-actions / TypeCheck
Property 'carBodyItems' does not exist on type 'DocumentNode'.
Property 'carBodyItems' does not exist on type 'DocumentNode'.
Raw output
23 | private async getCarBodiesData(): ReturnDataType {
24 | const queryData = await this.apolloAdapterService.runQuery(GET_CAR_BODIES)
> 25 | const carBodiesQueryData: Awaited<ReturnDataType> = queryData.data.carBodyItems
| ^
26 | .nodes as Awaited<ReturnDataType>
27 | checkArrayLength({ carBodiesQueryData })
28 | return carBodiesQueryData
github-actions / TypeCheck
Property 'availableRadiusItems' does not exist on type 'DocumentNode'.
Property 'availableRadiusItems' does not exist on type 'DocumentNode'.
Raw output
23 | private async getRadiiData(): ReturnDataType {
24 | const queryData = await this.apolloAdapterService.runQuery(GET_AVAILABLE_RADII)
> 25 | const radiiQueryData: Awaited<ReturnDataType> = queryData.data.availableRadiusItems
| ^
26 | .nodes as Awaited<ReturnDataType>
27 | checkArrayLength({ radiiQueryData })
28 | return radiiQueryData
github-actions / TypeCheck
Property 'services' does not exist on type 'DocumentNode'.
Property 'services' does not exist on type 'DocumentNode'.
Raw output
20 | private async getServicesData(): ReturnServicesDataType {
21 | const queryData = await this.apolloAdapterService.runQuery(GET_SERVICES)
> 22 | const servicesQueryData = queryData.data.services.nodes
| ^
23 | checkArrayLength({ servicesQueryData })
24 | // eslint-disable-next-line @typescript-eslint/no-unsafe-return
25 | return servicesQueryData
github-actions / TypeCheck
Property 'contactItems' does not exist on type 'DocumentNode'.
Property 'contactItems' does not exist on type 'DocumentNode'.
Raw output
18 | private async getWorkTimeQueryData(): ReturnWorkTimeDataType {
19 | const queryData = await this.apolloAdapterService.runQuery(GET_CONTACTS)
> 20 | const workTimeData: Awaited<ReturnWorkTimeDataType> = queryData.data.contactItems
| ^
21 | .nodes as Awaited<ReturnWorkTimeDataType>
22 | return workTimeData
23 | }
github-actions / TypeCheck
Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.
Argument of type 'Record<keyof TelegramBotFormattedContextType, any>' is not assignable to parameter of type 'Record<keyof TelegramBotFormattedContextType, never>'.
Types of property 'userId' are incompatible.
Type 'any' is not assignable to type 'never'.
Raw output
17 | }
18 |
> 19 | const formattedContextChecked = checkFormattedContextHelper(formattedContext)
| ^
20 | return formattedContextChecked
21 | }
22 |
github-actions / TypeCheck
Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.
Argument of type 'object' is not assignable to parameter of type 'Record<string, unknown>'.
Index signature for type 'string' is missing in type '{}'.
Raw output
16 | if (typeof body === 'string') {
17 | const parsedBody: object = await JSON.parse(body)
> 18 | const checkedBody = checkBookingDataHelper(parsedBody)
| ^
19 | await this.appointmentEntityRepository.writeData(checkedBody)
20 | return HttpStatus.OK
21 | }