@types/react-bootstrap-typeahead
Advanced tools
Comparing version
@@ -110,2 +110,4 @@ // Type definitions for react-bootstrap-typeahead 3.4 | ||
export type TypeaheadResult<T extends TypeaheadModel> = T & { customOption: boolean }; | ||
export interface TypeaheadProps<T extends TypeaheadModel> { | ||
@@ -256,6 +258,6 @@ /* For localized accessibility: Should return a string indicating the number of results for screen readers. | ||
/* Callback for custom menu rendering. */ | ||
renderMenu?: (results: T[], menuProps: any) => React.ReactNode; | ||
renderMenu?: (results: Array<TypeaheadResult<T>>, menuProps: any) => React.ReactNode; | ||
/* Provides a hook for customized rendering of menu item contents. */ | ||
renderMenuItemChildren?: (option: T, props: TypeaheadMenuProps<T>, index: number) => React.ReactNode; | ||
renderMenuItemChildren?: (option: TypeaheadResult<T>, props: TypeaheadMenuProps<T>, index: number) => React.ReactNode; | ||
@@ -262,0 +264,0 @@ /* Provides a hook for customized rendering of tokens when multiple selections are enabled. */ |
{ | ||
"name": "@types/react-bootstrap-typeahead", | ||
"version": "3.4.1", | ||
"version": "3.4.2", | ||
"description": "TypeScript definitions for react-bootstrap-typeahead", | ||
@@ -43,4 +43,4 @@ "license": "MIT", | ||
}, | ||
"typesPublisherContentHash": "22f0cc3c01ba7175a7257165d457f50941fba0f2c88cf0bb47971616ab029dde", | ||
"typesPublisherContentHash": "bd702244df187fba3ebedb187e05144064195816b3b550140c511fc1b9473a9a", | ||
"typeScriptVersion": "2.9" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 28 Jan 2019 23:47:07 GMT | ||
* Last updated: Wed, 06 Feb 2019 00:30:31 GMT | ||
* Dependencies: @types/react | ||
@@ -14,0 +14,0 @@ * Global values: none |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21957
0.58%339
0.3%0
-100%