mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00: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.
74 lines
2.4 KiB
TypeScript
74 lines
2.4 KiB
TypeScript
// Type definitions for react-autosuggest 7.0
|
|
// Project: http://react-autosuggest.js.org/
|
|
// Definitions by: Nicolas Schmitt <https://github.com/nicolas-schmitt>, Philip Ottesen <https://github.com/pjo256>, Robert Essig <https://github.com/robessog>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as React from 'react';
|
|
|
|
interface SuggestionsFetchRequest {
|
|
value: string;
|
|
reason: string;
|
|
}
|
|
|
|
interface InputValues {
|
|
value: string;
|
|
valueBeforeUpDown?: string;
|
|
}
|
|
|
|
interface ChangeEvent {
|
|
newValue: string;
|
|
method: 'down' | 'up' | 'escape' | 'enter' | 'click' | 'type';
|
|
}
|
|
|
|
interface BlurEvent {
|
|
focusedSuggestion: any;
|
|
}
|
|
|
|
interface InputProps extends React.HTMLAttributes<any> {
|
|
value: string;
|
|
onChange: (event: React.FormEvent<any>, params?: ChangeEvent) => void;
|
|
onBlur?: (event: React.FormEvent<any>, params?: BlurEvent) => void;
|
|
}
|
|
|
|
export interface SuggestionSelectedEventData<TSuggestion> {
|
|
method: 'click' | 'enter';
|
|
sectionIndex: number | null;
|
|
suggestion: TSuggestion;
|
|
suggestionValue: string;
|
|
}
|
|
|
|
interface Theme {
|
|
container?: string;
|
|
containerOpen?: string;
|
|
input?: string;
|
|
sectionContainer?: string;
|
|
sectionSuggestionsContainer?: string;
|
|
sectionTitle?: string;
|
|
suggestion?: string;
|
|
suggestionFocused?: string;
|
|
suggestionsContainer?: string;
|
|
}
|
|
|
|
interface AutosuggestProps extends React.Props<Autosuggest> {
|
|
suggestions: any[];
|
|
onSuggestionsFetchRequested: (request: SuggestionsFetchRequest) => void;
|
|
onSuggestionsClearRequested?: () => void;
|
|
getSuggestionValue: (suggestion: any) => any;
|
|
renderSuggestion: (suggestion: any, inputValues: InputValues) => JSX.Element;
|
|
inputProps: InputProps;
|
|
onSuggestionSelected?: (event: React.FormEvent<any>, data: SuggestionSelectedEventData<any>) => void;
|
|
shouldRenderSuggestions?: (value: string) => boolean;
|
|
alwaysRenderSuggestions?: boolean;
|
|
focusFirstSuggestion?: boolean;
|
|
focusInputOnSuggestionClick?: boolean;
|
|
multiSection?: boolean;
|
|
renderSectionTitle?: (section: any, inputValues: InputValues) => JSX.Element;
|
|
getSectionSuggestions?: (section: any) => any[];
|
|
renderInputComponent?: () => JSX.Element;
|
|
renderSuggestionsContainer?: (children: any) => JSX.Element;
|
|
theme?: Theme;
|
|
id?: string;
|
|
}
|
|
|
|
export class Autosuggest extends React.Component<any, any> {}
|