Skip to content

Commit 88a4470

Browse files
Update TestDatePicker type to use DatePickerProps
1 parent 8473f96 commit 88a4470

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/timepicker_test.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ import {
1313
setupMockResizeObserver,
1414
} from "./test_utils";
1515

16+
import type { DatePickerProps } from "../index";
17+
1618
const MIN_TIME_LI_LEN = 2;
17-
const TestDatePicker = DatePicker as unknown as React.ComponentType<any>;
19+
const TestDatePicker = DatePicker as unknown as React.ComponentType<DatePickerProps>;
1820

1921
describe("TimePicker", () => {
2022
let datePicker: HTMLDivElement;

0 commit comments

Comments
 (0)