@types/react-autosuggest
Advanced tools
Comparing version 3.7.3 to 3.7.4
{ | ||
"name": "@types/react-autosuggest", | ||
"version": "3.7.3", | ||
"version": "3.7.4", | ||
"description": "TypeScript definitions for react-autosuggest v3.7.3", | ||
@@ -13,4 +13,7 @@ "license": "MIT", | ||
"scripts": {}, | ||
"dependencies": {}, | ||
"typings": "react-autosuggest.d.ts" | ||
"dependencies": { | ||
"@types/react": "*" | ||
}, | ||
"typings": "react-autosuggest.d.ts", | ||
"typesPublisherContentHash": "b7c145ce8e75dfbfc3043a6026449f0cf48e41f720565570ee2f3d7bc35d8a7c" | ||
} |
@@ -9,4 +9,2 @@ // Type definitions for react-autosuggest v3.7.3 | ||
declare namespace ReactAutosuggest { | ||
import React = __React; | ||
interface SuggestionUpdateRequest { | ||
@@ -22,14 +20,17 @@ value: string; | ||
interface InputProps extends React.HTMLAttributes { | ||
interface InputProps extends React.HTMLAttributes<any> { | ||
value: string; | ||
onChange: (event: React.FormEvent, params?: {newValue: string, method: string}) => void; | ||
onChange: (event: React.FormEvent<any>, params?: {newValue: string, method: string}) => void; | ||
} | ||
interface SuggestionSelectedEventData { | ||
interface ExplicitSuggestionSelectedEventData<TSuggestion> { | ||
method: string; | ||
sectionIndex: number; | ||
suggestion: any; | ||
suggestion: TSuggestion; | ||
suggestionValue: string; | ||
} | ||
interface SuggestionSelectedEventData extends ExplicitSuggestionSelectedEventData<any> { | ||
} | ||
interface Theme { | ||
@@ -57,3 +58,3 @@ container: string; | ||
getSectionSuggestions?: (section: any) => any[]; | ||
onSuggestionSelected?: (event: React.FormEvent, data: SuggestionSelectedEventData) => void; | ||
onSuggestionSelected?: (event: React.FormEvent<any>, data: SuggestionSelectedEventData | ExplicitSuggestionSelectedEventData<any>) => void; | ||
focusInputOnSuggestionClick?: boolean; | ||
@@ -60,0 +61,0 @@ theme?: Theme; |
@@ -11,5 +11,5 @@ # Installation | ||
Additional Details | ||
* Last updated: Thu, 25 Aug 2016 16:56:09 GMT | ||
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
* File structure: OldUMD | ||
* Library Dependencies: none | ||
* Library Dependencies: react | ||
* Module Dependencies: none | ||
@@ -16,0 +16,0 @@ * Global values: ReactAutosuggest |
{ | ||
"authors": "Nicolas Schmitt <https://github.com/nicolas-schmitt>", | ||
"definitionFilename": "react-autosuggest.d.ts", | ||
"libraryDependencies": [], | ||
"libraryDependencies": [ | ||
"react" | ||
], | ||
"moduleDependencies": [], | ||
@@ -24,3 +26,3 @@ "libraryMajorVersion": "3", | ||
"hasPackageJson": false, | ||
"contentHash": "87a5c949149fabd8636a6bddc3cfe0fc0c0ec1e398c697074aaaade6d0c6762b" | ||
"contentHash": "b7c145ce8e75dfbfc3043a6026449f0cf48e41f720565570ee2f3d7bc35d8a7c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4199
84
1
+ Added@types/react@*
+ Added@types/prop-types@15.7.13(transitive)
+ Added@types/react@18.3.12(transitive)
+ Addedcsstype@3.1.3(transitive)