@types/react-calendar
Advanced tools
Comparing version 3.4.1 to 3.4.2
@@ -7,9 +7,10 @@ // Type definitions for react-calendar 3.4 | ||
import { MouseEvent, ChangeEvent, MutableRefObject, RefObject } from "react"; | ||
import { MouseEvent, ChangeEvent, MutableRefObject, RefObject } from 'react'; | ||
export type CalendarType = "ISO 8601" | "US" | "Arabic" | "Hebrew"; | ||
export type Detail = "month" | "year" | "decade" | "century"; | ||
export type CalendarType = "ISO 8601" | 'US' | 'Arabic' | 'Hebrew'; | ||
export type Detail = 'month' | 'year' | 'decade' | 'century'; | ||
export type DateCallback = (value: Date, event: MouseEvent<HTMLButtonElement>) => void; | ||
export type ClickWeekNumberCallback = (weekNumber: number, date: Date, event: MouseEvent<HTMLButtonElement>) => void; | ||
export type OnChangeDateCallback = (value: Date, event: ChangeEvent<HTMLInputElement>) => void; | ||
export type OnChangeDateRangeCallback = (values: [Date] | [Date, Date], event: ChangeEvent<HTMLInputElement>) => void; | ||
export type FormatterCallback = (locale: string, date: Date) => string; | ||
@@ -56,3 +57,3 @@ export type ViewCallback = (props: ViewCallbackProperties) => void; | ||
onActiveStartDateChange?: ViewCallback | undefined; | ||
onChange?: OnChangeDateCallback | undefined; | ||
onChange?: OnChangeDateCallback | OnChangeDateRangeCallback | undefined; | ||
onViewChange?: ViewCallback | undefined; | ||
@@ -59,0 +60,0 @@ onClickDay?: DateCallback | undefined; |
{ | ||
"name": "@types/react-calendar", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "TypeScript definitions for react-calendar", | ||
@@ -35,4 +35,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-calendar", | ||
}, | ||
"typesPublisherContentHash": "8b82085d03c9e443e36eb7658fe8713ae1bea3d661e5a0cbe237cd1535f496e6", | ||
"typesPublisherContentHash": "84b87f53f538e74c553385edfd917b11e7e3231f5fb9815d3c31d2c3a55aaba5", | ||
"typeScriptVersion": "3.6" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Wed, 07 Jul 2021 17:02:57 GMT | ||
* Last updated: Fri, 16 Jul 2021 05:31:17 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8375
110