Skip to content

Commit b12cc26

Browse files
fix(js): make getSources optional
1 parent 992557c commit b12cc26

File tree

1 file changed

+1
-1
lines changed
  • packages/autocomplete-js/src/types

1 file changed

+1
-1
lines changed

packages/autocomplete-js/src/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export interface AutocompleteOptions<TItem>
6262
* You can either pass a [CSS selector](https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors) or an [Element](https://developer.mozilla.org/docs/Web/API/HTMLElement). The first element matching the provided selector will be used as container.
6363
*/
6464
container: string | HTMLElement;
65-
getSources: GetSources<TItem>;
65+
getSources?: GetSources<TItem>;
6666
/**
6767
* The panel horizontal position.
6868
*

0 commit comments

Comments
 (0)