-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: AdrianGonz97 <[email protected]>
- Loading branch information
1 parent
53dc1d7
commit b92d622
Showing
5 changed files
with
50 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"cSpell.language": "en" | ||
} | ||
"cSpell.language": "en" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@skeletonlabs/skeleton': minor | ||
--- | ||
|
||
feat: Added support for generic types on values provided to Autocomplete component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
// Autocomplete Types | ||
|
||
export interface AutocompleteOption { | ||
/** provide a unique display label per option. Supports HTML. */ | ||
export interface AutocompleteOption<Value = unknown, Meta = unknown> { | ||
/** Provide a unique display label per option. Supports HTML. */ | ||
label: string; | ||
/** Provide a unique option value. */ | ||
value: unknown; | ||
value: Value; | ||
/** Provide a comma separated list of keywords. */ | ||
keywords?: any; | ||
keywords?: string; | ||
/** Pass arbitrary data per option. */ | ||
meta?: any; | ||
meta?: Meta; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters