[semantic-ui-search] Add SearchSettings.type property. (#18888)

This commit is contained in:
Leonard Thieu 2017-08-14 14:23:49 -04:00 committed by Mohamed Hegazy
parent e3c344e6a4
commit 3743d1f0eb
2 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,7 @@ declare namespace SemanticUI {
namespace SearchSettings {
type Param = (Pick<_Impl, 'apiSettings'> |
Pick<_Impl, 'type'> |
Pick<_Impl, 'minCharacters'> |
Pick<_Impl, 'transition'> |
Pick<_Impl, 'duration'> |
@ -142,6 +143,8 @@ declare namespace SemanticUI {
Partial<Pick<_Impl, keyof _Impl>>;
interface _Impl {
type: string;
// region Behavior
/**

View File

@ -46,6 +46,7 @@ function test_search() {
});
// $ExpectType JQuery<HTMLElement>
$(selector).search({
type: 'type',
apiSettings: {
on: 'on',
cache: true,