Skip to content

Commit

Permalink
Updated examples to remove 'undefined' from suggestions type.
Browse files Browse the repository at this point in the history
Since the 'suggestions' variable from the Autosuggest component has type `any[]`, the example code should reflect this.
  • Loading branch information
Wendelstein7 authored Dec 17, 2024
1 parent 16605d7 commit 4149c36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/showcase/doc/autocomplete/basicdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface AutoCompleteCompleteEvent {
<app-code [code]="code" selector="autocomplete-basic-demo"></app-code>`
})
export class BasicDoc {
items: any[] | undefined;
items: any[] = [];

value: any;
code: Code = {
Expand All @@ -47,7 +47,7 @@ interface AutoCompleteCompleteEvent {
standalone: true,
})
export class AutocompleteBasicDemo {
items: any[] | undefined;
items: any[] = [];
value: any;
Expand Down

0 comments on commit 4149c36

Please sign in to comment.