@types/react-flatpickr
Advanced tools
Comparing version 3.8.8 to 3.8.9
@@ -9,8 +9,10 @@ // Type definitions for react-flatpickr 3.8 | ||
import flatpickr from "flatpickr"; | ||
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<React.ComponentPropsWithoutRef<'input'>, 'children' | 'value' | 'onChange'> { | ||
export interface DateTimePickerProps | ||
extends Omit<React.ComponentPropsWithoutRef<"input">, "children" | "value" | "onChange"> | ||
{ | ||
defaultValue?: string | undefined; | ||
@@ -29,3 +31,8 @@ options?: flatpickr.Options.Options | undefined; | ||
children?: React.ReactNode | undefined; | ||
render?: ((props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement | null) => void) => ReactElement) | undefined; | ||
render?: | ||
| (( | ||
props: Omit<DateTimePickerProps, "options" | "render">, | ||
ref: (node: HTMLInputElement | null) => void, | ||
) => ReactElement) | ||
| undefined; | ||
} | ||
@@ -32,0 +39,0 @@ |
{ | ||
"name": "@types/react-flatpickr", | ||
"version": "3.8.8", | ||
"version": "3.8.9", | ||
"description": "TypeScript definitions for react-flatpickr", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-flatpickr", | ||
}, | ||
"typesPublisherContentHash": "ded6e5d8f6b1022359bb729df9ad3daab07fd5c96d638f3d646c9479812292ea", | ||
"typeScriptVersion": "4.1" | ||
"typesPublisherContentHash": "603818f704da39d625779e755f829d6e77489d2ea6db49e86785b37b1b447ebd", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -19,8 +19,10 @@ # Installation | ||
import flatpickr from "flatpickr"; | ||
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<React.ComponentPropsWithoutRef<'input'>, 'children' | 'value' | 'onChange'> { | ||
export interface DateTimePickerProps | ||
extends Omit<React.ComponentPropsWithoutRef<"input">, "children" | "value" | "onChange"> | ||
{ | ||
defaultValue?: string | undefined; | ||
@@ -39,3 +41,8 @@ options?: flatpickr.Options.Options | undefined; | ||
children?: React.ReactNode | undefined; | ||
render?: ((props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement | null) => void) => ReactElement) | undefined; | ||
render?: | ||
| (( | ||
props: Omit<DateTimePickerProps, "options" | "render">, | ||
ref: (node: HTMLInputElement | null) => void, | ||
) => ReactElement) | ||
| undefined; | ||
} | ||
@@ -50,3 +57,3 @@ | ||
### Additional Details | ||
* Last updated: Tue, 25 Oct 2022 17:32:49 GMT | ||
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT | ||
* Dependencies: [@types/flatpickr](https://npmjs.com/package/@types/flatpickr), [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -53,0 +60,0 @@ * Global values: none |
6454
36
61