mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
* base-64 typings
* formatting and indenting
* feat: add typings for watchpack
* fix: improve missing typings
* Port from https://github.com/agileek/typings-vis/blob/master/vs.d.ts
* Fix travis build failures
* Port PR https://github.com/agileek/typings-vis/pull/12
* Fix travis build failures
* added tsconfig and tslint
* removed patch number
* added tests
* made it export like base64-js
* removed old code
* formatted code
* fix: add files field in tsconfig.json for expected publishment
* fix: improve most missing typings
* feat: upgrade to v3.0.0
* feat: upgrade to tapbale v0.2.5
* Types 2.0 (#13261)
* updating typing of the latest 7.0 react-autosuggest
* updating typing of react-autosuggest 7.0
* update typings for react-autosuggest 7.0
* Remove '+' from header versions, so they can be parsed (#13239)
* Updated masonry-layout to fix linting errors (#13272)
* Updated masonry-layout to fix linting errors
* Fixed the tests I could fix.
* Removed patch version
* Add redux-persist and basic transformers (#13389)
* Add definitions for redux-persist
* Add missin generic types
* Add definitions for filter transformer
* Add definitions for encrypt transformer
* Fix header
* Add definitions for compress transformer
* Delete unnecessary linter configs
* Change way of importing, fix tests
* fix: angulartics type definition for ES6 import
* fix: lint error
* fix scalar type config (#13398)
The `GraphQLScalarTypeConfig` interface had incorrect types. Correct types may be seen here: 379a308439/src/type/definition.js (L348-L350)
* [interact.js] Update module names (#13316)
Update CommonJS module name as it was changed in version 1.2.7.
AMD module name is also different from both new and old CommonJS module names, so a separate declaration was created for that as well.
* Add definitions for redux-recycle (#13424)
* Add definitions for redux-recycle
* Fix linter errors
* [jest] add type definition for toHaveBeenLastCalledWith (#13038)
* remove ajv because the package bundles its own types (#13028)
* Updated type definitions to yfiles for HTML 2.0. (#13332)
* Updated type definitions to yFiles for HTML 2.0.
* Updated type definitions to yfiles for HTML 2.0.
* Added contact in yfiles .d.ts header.
* Add redux-batched-actions typings. (#13054)
* Add types for mailgen (#13080)
* Typings for cordova-sqlite-storage (#13081)
* Add flatpickr definitions (#13083)
* Add pouch-redux-middleware typing (#13071)
* Add pouch-redux-middleware typing
* Fix <> in comment
* Add declaration for crc (#13068)
* Updated jquery.dataTables for 1.10.9 (#13099)
Release Notes: https://cdn.datatables.net/1.10.9/
* Moved legacy browser settings to its own data type.
* Added 'aIds' property on legacy settings object for mapping row ids to data indexes.
* Added 'rowIdFn' function to legacy settings object to get a row's id from the row's data.
* chore(lint): change vis typing to external module (#13399)
* Fix cordova-sqlite-storage lint
* Lint `vis`: Remove "I" prefix for namespaces
* Change cordova-sqlite-storage back. Linter was wrong.
69 lines
2.3 KiB
TypeScript
69 lines
2.3 KiB
TypeScript
// Type definitions for flatpickr 2.2
|
|
// Project: https://github.com/chmln/flatpickr
|
|
// Definitions by: James Birtles <https://github.com/UnwrittenFun>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
declare class Flatpickr {
|
|
constructor(element: string | Element, options?: Flatpickr.Options);
|
|
|
|
changeMonth(month: number, isOffset: boolean): void;
|
|
clear(): void;
|
|
close(): void;
|
|
destroy(): void;
|
|
formatDate(format: string, date: Date): string;
|
|
jumpToDate(date?: Flatpickr.DateString): void;
|
|
open(): void;
|
|
parseDate(date: string): Date;
|
|
redraw(): void;
|
|
set(option: string, value: any): void;
|
|
setDate(date: Flatpickr.DateString | Flatpickr.DateString[]): void;
|
|
toggle(): void;
|
|
}
|
|
|
|
declare namespace Flatpickr {
|
|
interface Options {
|
|
altFormat?: string;
|
|
altInput?: boolean;
|
|
altInputClass?: string;
|
|
allowInput?: boolean;
|
|
clickOpens?: boolean;
|
|
dateFormat?: string | null;
|
|
defaultDate?: DateString | DateString[];
|
|
disable?: DateRange[];
|
|
enable?: DateRange[];
|
|
enableTime?: boolean;
|
|
enableSeconds?: boolean;
|
|
hourIncrement?: number;
|
|
inline?: boolean;
|
|
maxDate?: DateString;
|
|
minDate?: DateString;
|
|
minuteIncrement?: number;
|
|
mode?: Mode;
|
|
nextArrow?: string;
|
|
noCalendar?: boolean;
|
|
onChange?: EventCallback | EventCallback[];
|
|
onClose?: EventCallback | EventCallback[];
|
|
onOpen?: EventCallback | EventCallback[];
|
|
onReady?: EventCallback | EventCallback[];
|
|
onMonthChange?: EventCallback | EventCallback[];
|
|
onYearChange?: EventCallback | EventCallback[];
|
|
onValueUpdate?: EventCallback | EventCallback[];
|
|
onDayCreate?: EventCallback | EventCallback[];
|
|
parseDate?: (date: string) => Date;
|
|
prevArrow?: string;
|
|
shorthandCurrentMonth?: boolean;
|
|
static?: boolean;
|
|
time_24hr?: boolean;
|
|
utc?: boolean;
|
|
weekNumbers?: boolean;
|
|
wrap?: boolean;
|
|
}
|
|
|
|
type DateString = Date | string;
|
|
type DateRange = DateString | { from: DateString, to: DateString } | ((date: Date) => boolean);
|
|
type Mode = 'single' | 'multiple' | 'range';
|
|
type EventCallback = (selectedDates: Date[], dateStr: string, instance: Flatpickr, elem: HTMLElement) => void;
|
|
}
|
|
|
|
export = Flatpickr;
|