mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[semantic-ui-search] Add SearchSettings.type property. (#18888)
This commit is contained in:
parent
e3c344e6a4
commit
3743d1f0eb
3
types/semantic-ui-search/global.d.ts
vendored
3
types/semantic-ui-search/global.d.ts
vendored
@ -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
|
||||
|
||||
/**
|
||||
|
||||
@ -46,6 +46,7 @@ function test_search() {
|
||||
});
|
||||
// $ExpectType JQuery<HTMLElement>
|
||||
$(selector).search({
|
||||
type: 'type',
|
||||
apiSettings: {
|
||||
on: 'on',
|
||||
cache: true,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user