From 4149c3641cb3137ea4317fa4f7a2f02bc296029d Mon Sep 17 00:00:00 2001 From: Wendelstein7 <23213464+Wendelstein7@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:46:49 +0100 Subject: [PATCH] Updated examples to remove 'undefined' from `suggestions` type. Since the 'suggestions' variable from the Autosuggest component has type `any[]`, the example code should reflect this. --- apps/showcase/doc/autocomplete/basicdoc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/showcase/doc/autocomplete/basicdoc.ts b/apps/showcase/doc/autocomplete/basicdoc.ts index e971d48d392..0e7f4116e19 100644 --- a/apps/showcase/doc/autocomplete/basicdoc.ts +++ b/apps/showcase/doc/autocomplete/basicdoc.ts @@ -21,7 +21,7 @@ interface AutoCompleteCompleteEvent { ` }) export class BasicDoc { - items: any[] | undefined; + items: any[] = []; value: any; code: Code = { @@ -47,7 +47,7 @@ interface AutoCompleteCompleteEvent { standalone: true, }) export class AutocompleteBasicDemo { - items: any[] | undefined; + items: any[] = []; value: any;