fix(types): fix return types to string #187
Annotations
11 errors and 13 warnings
build
Process completed with exit code 1.
|
lint:
src/DateTimePicker.tsx#L199
Type 'string | undefined' is not assignable to type 'string'.
|
lint:
src/DateTimePicker.tsx#L298
Type '(selectedDate: string) => void' is not assignable to type '(date: DateType) => void'.
|
lint:
src/__tests__/api.test.tsx#L15
Cannot find name 'onChange'.
|
lint:
src/__tests__/api.test.tsx#L18
Cannot find name 'onChange'.
|
lint:
src/__tests__/api.test.tsx#L26
Cannot find name 'onChange'.
|
lint:
src/__tests__/api.test.tsx#L27
Cannot find name 'onChange'.
|
lint:
src/__tests__/api.test.tsx#L36
Cannot find name 'onChange'.
|
lint:
src/__tests__/api.test.tsx#L38
Type '{ timePicker: true; date: Date; onChange: any; }' is not assignable to type 'IntrinsicAttributes & (DatePickerSingleProps | DatePickerRangeProps | DatePickeMultipleProps)'.
|
lint:
src/__tests__/api.test.tsx#L41
Cannot find name 'onChange'.
|
lint:
src/__tests__/api.test.tsx#L50
Cannot find name 'onChange'.
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint:
src/DateTimePicker.tsx#L130
'date' is already declared in the upper scope on line 76 column 5
|
lint:
src/DateTimePicker.tsx#L137
'startDate' is already declared in the upper scope on line 77 column 5
|
lint:
src/DateTimePicker.tsx#L137
'endDate' is already declared in the upper scope on line 78 column 5
|
lint:
src/DateTimePicker.tsx#L144
'dates' is already declared in the upper scope on line 79 column 5
|
lint:
src/components/Day.tsx#L84
Empty components are self-closing
|
lint:
src/components/Day.tsx#L90
Empty components are self-closing
|
lint:
src/components/Day.tsx#L93
Inline style: { left: '50%' }
|
lint:
src/components/Day.tsx#L102
Empty components are self-closing
|
lint:
src/components/Day.tsx#L105
Inline style: { right: '50%' }
|
lint:
src/components/DaySelector.tsx#L165
'date' is already declared in the upper scope on line 20 column 5
|
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|