From 0a59de68dbb0c4cccbe0a285d83218a032d9a34a Mon Sep 17 00:00:00 2001 From: Zach Hammer Date: Tue, 18 Apr 2023 17:26:38 -0400 Subject: [PATCH] Fix ae-forgotten-export // Warning: (ae-forgotten-export) The symbol "StackOverflowSearchResultListItemProps" needs to be exported by the entry point index.d.ts Signed-off-by: Zach Hammer --- plugins/stack-overflow/src/index.ts | 1 + .../StackOverflowSearchResultListItem.tsx | 5 +++++ .../src/search/StackOverflowSearchResultListItem/index.ts | 1 + 3 files changed, 7 insertions(+) diff --git a/plugins/stack-overflow/src/index.ts b/plugins/stack-overflow/src/index.ts index a796f563eb..11af38f7ab 100644 --- a/plugins/stack-overflow/src/index.ts +++ b/plugins/stack-overflow/src/index.ts @@ -30,5 +30,6 @@ export type { StackOverflowQuestionsContentProps, StackOverflowQuestionsRequestParams, } from './types'; +export type { StackOverflowSearchResultListItemProps } from './search/StackOverflowSearchResultListItem'; export { stackOverflowApiRef } from './api'; export type { StackOverflowApi } from './api'; diff --git a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx index de015145e1..245666deeb 100644 --- a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx +++ b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/StackOverflowSearchResultListItem.tsx @@ -29,6 +29,11 @@ import { useAnalytics } from '@backstage/core-plugin-api'; import { ResultHighlight } from '@backstage/plugin-search-common'; import { HighlightedSearchResultText } from '@backstage/plugin-search-react'; +/** + * Props for {@link StackOverflowSearchResultListItem} + * + * @public + */ export type StackOverflowSearchResultListItemProps = { result?: any; // TODO(emmaindal): type to StackOverflowDocument. icon?: React.ReactNode; diff --git a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/index.ts b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/index.ts index 499f7273aa..7aeec9e55a 100644 --- a/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/index.ts +++ b/plugins/stack-overflow/src/search/StackOverflowSearchResultListItem/index.ts @@ -15,3 +15,4 @@ */ export { StackOverflowSearchResultListItem } from './StackOverflowSearchResultListItem'; +export type { StackOverflowSearchResultListItemProps } from './StackOverflowSearchResultListItem';