Socket
Socket
Sign inDemoInstall

@types/react-datepicker

Package Overview
Dependencies
15
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.3 to 6.2.0

18

react-datepicker/index.d.ts

@@ -41,3 +41,6 @@ import { Middleware, Placement, UseFloatingOptions } from "@floating-ui/react";

export interface ReactDatePickerProps<WithRange extends boolean | undefined = undefined> {
export interface ReactDatePickerProps<
WithRange extends boolean | undefined = undefined,
WithMultiple extends boolean | undefined = undefined,
> {
adjustDateOnChange?: boolean | undefined;

@@ -111,3 +114,5 @@ allowSameDay?: boolean | undefined;

onChange(
date: WithRange extends false | undefined ? Date | null : [Date | null, Date | null],
date: WithRange extends false | undefined
? (WithMultiple extends false | undefined ? Date | null : Date[] | null)
: [Date | null, Date | null],
event: React.SyntheticEvent<any> | undefined,

@@ -158,2 +163,4 @@ ): void;

selectsRange?: WithRange;
selectsMultiple?: WithMultiple;
selectedDates?: Date[];
shouldCloseOnSelect?: boolean | undefined;

@@ -205,4 +212,7 @@ showDisabledMonthNavigation?: boolean | undefined;

declare class ReactDatePicker<WithRange extends boolean | undefined = undefined> extends React.Component<
ReactDatePickerProps<WithRange>
declare class ReactDatePicker<
WithRange extends boolean | undefined = undefined,
WithMultiple extends boolean | undefined = undefined,
> extends React.Component<
ReactDatePickerProps<WithRange, WithMultiple>
> {

@@ -209,0 +219,0 @@ readonly setBlur: () => void;

{
"name": "@types/react-datepicker",
"version": "6.0.3",
"version": "6.2.0",
"description": "TypeScript definitions for react-datepicker",

@@ -82,4 +82,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-datepicker",

},
"typesPublisherContentHash": "ce61c555d7d67352c0d953d794c06ff858448e4a4e54fcaf31f795e86945a851",
"typeScriptVersion": "4.6"
"typesPublisherContentHash": "8ad647742ea6bc8e95a152ddf709388bb05f48bdba867addcecb2811049484c1",
"typeScriptVersion": "4.7"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 04 Mar 2024 00:50:26 GMT
* Last updated: Mon, 11 Mar 2024 23:35:33 GMT
* Dependencies: [@floating-ui/react](https://npmjs.com/package/@floating-ui/react), [@types/react](https://npmjs.com/package/@types/react), [date-fns](https://npmjs.com/package/date-fns)

@@ -14,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc