add documentation to exported types
Signed-off-by: goenning <me@goenning.net>
This commit is contained in:
@@ -20,10 +20,20 @@ import { Check } from './types';
|
||||
import { CheckResultRenderer } from '../components/CheckResultRenderer';
|
||||
import { EntityName } from '@backstage/catalog-model';
|
||||
|
||||
/**
|
||||
* {@link @backstage/core-plugin-api#ApiRef} for the {@link TechInsightsApi}
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export const techInsightsApiRef = createApiRef<TechInsightsApi>({
|
||||
id: 'plugin.techinsights.service',
|
||||
});
|
||||
|
||||
/**
|
||||
* API client interface for the Tech Insights plugin
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface TechInsightsApi {
|
||||
getScorecardsDefinition: (
|
||||
type: string,
|
||||
|
||||
@@ -13,6 +13,12 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Represents a single check defined on the TechInsights backend.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type Check = {
|
||||
id: string;
|
||||
type: string;
|
||||
|
||||
@@ -18,6 +18,11 @@ import { CheckResult } from '@backstage/plugin-tech-insights-common';
|
||||
import React from 'react';
|
||||
import { BooleanCheck } from './BooleanCheck';
|
||||
|
||||
/**
|
||||
* Defines a react component that is responsible for rendering a results of a given type.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export type CheckResultRenderer = {
|
||||
type: string;
|
||||
title: string;
|
||||
|
||||
@@ -19,3 +19,6 @@ export {
|
||||
} from './plugin';
|
||||
|
||||
export { techInsightsApiRef } from './api/TechInsightsApi';
|
||||
export type { TechInsightsApi } from './api/TechInsightsApi';
|
||||
export type { Check } from './api/types';
|
||||
export type { CheckResultRenderer } from './components/CheckResultRenderer';
|
||||
|
||||
Reference in New Issue
Block a user