Skip to content

Commit

Permalink
Fix invalid interface declarations in samples and README
Browse files Browse the repository at this point in the history
  • Loading branch information
dgetu committed Feb 16, 2024
1 parent c7e86e4 commit f984ded
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions sdk/search/search-documents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The Azure AI Search service is well suited for the following application scenari
* In a search client application, implement query logic and user experiences
similar to commercial web search engines and chat-style apps.

Use the Azure.Search.Documents client library to:
Use the @azure/search-documents client library to:

* Submit queries using vector, keyword, and hybrid query forms.
* Implement filtered queries for metadata, geospatial search, faceted navigation,
Expand Down Expand Up @@ -349,14 +349,14 @@ interface Hotel {
hotelId?: string;
hotelName?: string | null;
description?: string | null;
descriptionVector?: Array<number> | null;
descriptionVector?: Array<number>;
parkingIncluded?: boolean | null;
lastRenovationDate?: Date | null;
rating?: number | null;
rooms?: Array<{
beds?: number | null;
description?: string | null;
} | null>;
}>;
}

const client = new SearchClient<Hotel>(
Expand Down
8 changes: 4 additions & 4 deletions sdk/search/search-documents/samples-dev/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export interface Hotel {
hotelId?: string;
hotelName?: string | null;
description?: string | null;
descriptionVectorEn?: number[] | null;
descriptionVectorFr?: number[] | null;
descriptionVectorEn?: number[];
descriptionVectorFr?: number[];
descriptionFr?: string | null;
category?: string | null;
tags?: string[] | null;
tags?: string[];
parkingIncluded?: boolean | null;
smokingAllowed?: boolean | null;
lastRenovationDate?: Date | null;
Expand All @@ -40,5 +40,5 @@ export interface Hotel {
sleepsCount?: number | null;
smokingAllowed?: boolean | null;
tags?: string[] | null;
}> | null;
}>;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ export interface Hotel {
hotelId?: string;
hotelName?: string | null;
description?: string | null;
descriptionVectorEn?: number[] | null;
descriptionVectorFr?: number[] | null;
descriptionVectorEn?: number[];
descriptionVectorFr?: number[];
descriptionFr?: string | null;
category?: string | null;
tags?: string[] | null;
tags?: string[];
parkingIncluded?: boolean | null;
smokingAllowed?: boolean | null;
lastRenovationDate?: Date | null;
Expand All @@ -37,5 +37,5 @@ export interface Hotel {
sleepsCount?: number | null;
smokingAllowed?: boolean | null;
tags?: string[] | null;
}> | null;
}>;
}

0 comments on commit f984ded

Please sign in to comment.