Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #327 from illright/hotfix/option-getter
Browse files Browse the repository at this point in the history
Hotfix: `getOptions` type in AutocompleteField
  • Loading branch information
aabounegm authored Nov 21, 2021
2 parents 866531b + ee1bba0 commit acc4272
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented here.

The format is based on [Keep a Changelog](https://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/).

## [3.5.2] - 2021-11-21

### Fixed

- One more issue with the type of `AutocompleteField`'s `OptionGetter` (the type of the `getOptions` prop).

## [3.5.1] - 2021-11-20

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion attractions/autocomplete/autocomplete-field.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
/**
* @typedef {import('./autocomplete-option.svelte').Option} Option
* @typedef {(q: string) => Generator<Promise<Option[]>, never, never>} OptionsGetter
* @typedef {(q: string) => AsyncGenerator<Option[], void, void>} OptionsGetter
* @slot {{ loadMoreOptions: (click?: CustomEvent<{ nativeEvent: MouseEvent }>) => void }} more-options
* @event {{ value: Option[] }} change
*/
Expand Down
2 changes: 1 addition & 1 deletion attractions/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "attractions",
"version": "3.5.1",
"version": "3.5.2",
"description": "A UI kit for Svelte",
"homepage": "https://illright.github.io/attractions/",
"bugs": "https://github.com/illright/attractions/issues",
Expand Down

0 comments on commit acc4272

Please sign in to comment.