New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-flatpickr

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-flatpickr - npm Package Compare versions

Comparing version 3.8.3 to 3.8.4

26

react-flatpickr/index.d.ts

@@ -16,15 +16,15 @@ // Type definitions for react-flatpickr 3.8

export interface DateTimePickerProps extends Omit<Partial<HTMLInputElement>, 'value'> {
defaultValue?: string;
options?: flatpickr.Options.Options;
onChange?: flatpickr.Options.Hook;
onOpen?: flatpickr.Options.Hook;
onClose?: flatpickr.Options.Hook;
onMonthChange?: flatpickr.Options.Hook;
onYearChange?: flatpickr.Options.Hook;
onReady?: flatpickr.Options.Hook;
onValueUpdate?: flatpickr.Options.Hook;
onDayCreate?: flatpickr.Options.Hook;
value?: string | Date | number | ReadonlyArray<string | Date | number>;
className?: string;
render?: (props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement) => void) => ReactElement;
defaultValue?: string | undefined;
options?: flatpickr.Options.Options | undefined;
onChange?: flatpickr.Options.Hook | undefined;
onOpen?: flatpickr.Options.Hook | undefined;
onClose?: flatpickr.Options.Hook | undefined;
onMonthChange?: flatpickr.Options.Hook | undefined;
onYearChange?: flatpickr.Options.Hook | undefined;
onReady?: flatpickr.Options.Hook | undefined;
onValueUpdate?: flatpickr.Options.Hook | undefined;
onDayCreate?: flatpickr.Options.Hook | undefined;
value?: string | Date | number | ReadonlyArray<string | Date | number> | undefined;
className?: string | undefined;
render?: ((props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement) => void) => ReactElement) | undefined;
}

@@ -31,0 +31,0 @@

{
"name": "@types/react-flatpickr",
"version": "3.8.3",
"version": "3.8.4",
"description": "TypeScript definitions for react-flatpickr",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-flatpickr",
"license": "MIT",

@@ -40,4 +41,4 @@ "contributors": [

},
"typesPublisherContentHash": "ee40d648daa914133607f100bec1d5f8da94155990e316698f06d7fa9284b2cf",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "974ffd5a47a2675459a2b67db4feb3d2471f22b0adaf8061545ecb0bd0eacb65",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,42 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-flatpickr.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-flatpickr/index.d.ts)
````ts
// Type definitions for react-flatpickr 3.8
// Project: https://github.com/coderhaoxin/react-flatpickr
// Definitions by: snaveevans <https://github.com/snaveevans>
// rigothedev <https://github.com/rigothedev>
// doniyor2109 <https://github.com/doniyor2109>
// jleider <https://github.com/jleider>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Component, ReactElement } from "react";
import flatpickr from "flatpickr";
export type Omit<T, K extends keyof any> = Pick<T, Exclude<keyof T, K>>;
export interface DateTimePickerProps extends Omit<Partial<HTMLInputElement>, 'value'> {
defaultValue?: string | undefined;
options?: flatpickr.Options.Options | undefined;
onChange?: flatpickr.Options.Hook | undefined;
onOpen?: flatpickr.Options.Hook | undefined;
onClose?: flatpickr.Options.Hook | undefined;
onMonthChange?: flatpickr.Options.Hook | undefined;
onYearChange?: flatpickr.Options.Hook | undefined;
onReady?: flatpickr.Options.Hook | undefined;
onValueUpdate?: flatpickr.Options.Hook | undefined;
onDayCreate?: flatpickr.Options.Hook | undefined;
value?: string | Date | number | ReadonlyArray<string | Date | number> | undefined;
className?: string | undefined;
render?: ((props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement) => void) => ReactElement) | undefined;
}
export default class DatePicker extends Component<DateTimePickerProps> {
flatpickr: flatpickr.Instance;
}
````
### Additional Details
* Last updated: Mon, 08 Mar 2021 09:15:02 GMT
* Last updated: Thu, 08 Jul 2021 20:20:40 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/flatpickr](https://npmjs.com/package/@types/flatpickr)

@@ -14,0 +51,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