Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-calendar

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-calendar - npm Package Compare versions

Comparing version 3.4.1 to 3.4.2

9

react-calendar/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc