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';