@types/react-day-picker
Advanced tools
Comparing version 5.2.0 to 5.2.1
@@ -10,3 +10,3 @@ // Type definitions for react-day-picker 5.2 | ||
declare namespace DayPicker { | ||
export interface LocaleUtils { | ||
interface LocaleUtils { | ||
formatDay(day: Date, locale: string): string; | ||
@@ -20,3 +20,3 @@ formatMonthTitle(month: Date, locale: string): string; | ||
export interface DateUtils { | ||
interface DateUtils { | ||
addMonths(d: Date, n: number): Date; | ||
@@ -32,5 +32,5 @@ clone(d: Date): Date; | ||
export interface CaptionElementProps { | ||
interface CaptionElementProps { | ||
date: Date; | ||
classNames: ClassNames, | ||
classNames: ClassNames; | ||
localeUtils: LocaleUtils; | ||
@@ -42,3 +42,3 @@ locale: string; | ||
export interface NavbarElementProps { | ||
interface NavbarElementProps { | ||
className: string; | ||
@@ -58,3 +58,3 @@ classNames: ClassNames; | ||
export interface WeekdayElementProps { | ||
interface WeekdayElementProps { | ||
weekday: number; | ||
@@ -66,3 +66,3 @@ className: string; | ||
export interface ClassNames { | ||
interface ClassNames { | ||
container: string; | ||
@@ -89,18 +89,16 @@ interactionDisabled: string; | ||
export interface RangeModifier { | ||
interface RangeModifier { | ||
from: Date; | ||
to: Date; | ||
} | ||
export interface BeforeModifier { | ||
interface BeforeModifier { | ||
before: Date; | ||
} | ||
export interface AfterModifier { | ||
interface AfterModifier { | ||
after: Date; | ||
} | ||
export interface FunctionModifier { | ||
(date: Date): boolean; | ||
} | ||
export type Modifier = Date | RangeModifier | BeforeModifier | AfterModifier | FunctionModifier; | ||
type FunctionModifier = (date: Date) => boolean; | ||
type Modifier = Date | RangeModifier | BeforeModifier | AfterModifier | FunctionModifier; | ||
export interface Modifiers { | ||
interface Modifiers { | ||
today: Modifier | Modifier[]; | ||
@@ -111,3 +109,3 @@ outside: Modifier | Modifier[]; | ||
export interface Props { | ||
interface Props { | ||
canChangeMonth?: boolean; | ||
@@ -114,0 +112,0 @@ captionElement?: React.ReactElement<Partial<CaptionElementProps>> | |
{ | ||
"name": "@types/react-day-picker", | ||
"version": "5.2.0", | ||
"version": "5.2.1", | ||
"description": "TypeScript definitions for react-day-picker", | ||
@@ -26,4 +26,4 @@ "license": "MIT", | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "1109bef3a4a07259294cd0ed3bf399acac2e6f14e9a899b7d7ff93818cd3949e", | ||
"typesPublisherContentHash": "4fdb69b7bee18969b253a5ce932a048f784fa510ab8f09938ca5392217838082", | ||
"typeScriptVersion": "2.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 22 Mar 2017 00:26:27 GMT | ||
* Last updated: Mon, 27 Mar 2017 20:43:37 GMT | ||
* Dependencies: react | ||
@@ -14,0 +14,0 @@ * Global values: none |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
7522
147