From 088f41321089206a3e8e02736225945c129d995e Mon Sep 17 00:00:00 2001 From: Kidd Tang Date: Tue, 3 Sep 2024 14:10:13 +0800 Subject: [PATCH] Fix: Use type-only import for Calendar to resolve naming conflict --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 88751761..f189d2df 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,6 +1,6 @@ declare module "react-multi-date-picker" { import React, { HTMLAttributes } from "react"; - import DateObject, { Calendar, Locale } from "react-date-object"; + import DateObject, { type Calendar, Locale } from "react-date-object"; export type Value = Date | string | number | DateObject | null; export type FunctionalPlugin = { type: string; fn: Function };