Use IndexableDocument in search result set.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-02-15 13:25:05 +01:00
parent c22f1c33db
commit 04b492d404
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -21,6 +21,7 @@
"dependencies": {
"@backstage/backend-common": "^0.5.3",
"@backstage/config": "^0.1.2",
"@backstage/plugin-search-indexer-backend": "^0.1.1",
"@types/express": "^4.17.6",
"express": "^4.17.1",
"express-promise-router": "^3.0.3",
+3 -1
View File
@@ -14,6 +14,8 @@
* limitations under the License.
*/
import { IndexableDocument } from '@backstage/plugin-search-indexer-backend';
export interface SearchQuery {
term: string;
filters?: Record<string, any>;
@@ -22,5 +24,5 @@ export interface SearchQuery {
}
export interface SearchResultSet {
results: any[]; // @todo Use IndexableDocument from search-indexer-backend?
results: IndexableDocument[];
}