diff --git a/.changeset/many-pans-unite.md b/.changeset/many-pans-unite.md new file mode 100644 index 0000000000..59c068cec1 --- /dev/null +++ b/.changeset/many-pans-unite.md @@ -0,0 +1,5 @@ +--- +'@backstage/catalog-model': minor +--- + +Adds the tRPC API type to the catalog. diff --git a/plugins/api-docs/src/components/GraphQlDefinitionWidget/GraphQlDefinition.tsx b/plugins/api-docs/src/components/GraphQlDefinitionWidget/GraphQlDefinition.tsx index 3dbe941be3..d3fddf70cf 100644 --- a/plugins/api-docs/src/components/GraphQlDefinitionWidget/GraphQlDefinition.tsx +++ b/plugins/api-docs/src/components/GraphQlDefinitionWidget/GraphQlDefinition.tsx @@ -44,7 +44,7 @@ type Props = { definition: string; }; -export const GraphQlDefinition: React.FC = ({ definition }: Props) => { +export const GraphQlDefinition = ({ definition }: Props) => { const classes = useStyles(); const schema = buildSchema(definition); diff --git a/plugins/api-docs/src/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx b/plugins/api-docs/src/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx index 81bec09769..af73335dbd 100644 --- a/plugins/api-docs/src/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx +++ b/plugins/api-docs/src/components/TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx @@ -24,7 +24,7 @@ export type TrpcApiDefinitionWidgetProps = { }; /** @public */ -export const TrpcApiDefinitionWidget: React.FC = ( +export const TrpcApiDefinitionWidget = ( props: TrpcApiDefinitionWidgetProps, ) => { const { definition } = props;