3.8.11 • Published 6 months ago
@types/react-flatpickr v3.8.11
Installation
npm install --save @types/react-flatpickr
Summary
This package contains type definitions for react-flatpickr (https://github.com/coderhaoxin/react-flatpickr).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-flatpickr.
index.d.ts
// Type definitions for react-flatpickr 3.8
// Project: https://github.com/coderhaoxin/react-flatpickr
// Definitions by: snaveevans <https://github.com/snaveevans>
// 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>, 'children' | '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;
children?: React.ReactNode | undefined;
render?: ((props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement | null) => void) => ReactElement) | undefined;
}
export default class DatePicker extends Component<DateTimePickerProps> {
flatpickr: flatpickr.Instance;
}
Additional Details
- Last updated: Mon, 06 Jun 2022 16:31:32 GMT
- Dependencies: @types/react, @types/flatpickr
- Global values: none
Credits
These definitions were written by snaveevans, doniyor2109, and jleider.
3.8.9
8 months ago
3.8.10
7 months ago
3.8.11
6 months ago
3.8.8
2 years ago
3.8.7
2 years ago
3.8.6
2 years ago
3.8.5
2 years ago
3.8.4
3 years ago
3.8.3
3 years ago
3.8.2
3 years ago
3.8.1
4 years ago
3.8.0
5 years ago
3.7.1
5 years ago
3.7.0
5 years ago
3.6.0
5 years ago
3.2.7
6 years ago
3.2.6
6 years ago
3.2.5
6 years ago
3.2.4
6 years ago
3.2.3
6 years ago
3.2.2
7 years ago
3.2.1
7 years ago
3.2.0
7 years ago