From d51668882d678bbaf971ea3d4f9e73c020e3491d Mon Sep 17 00:00:00 2001 From: Oleg S <97077423+RobotSail@users.noreply.github.com> Date: Thu, 2 Feb 2023 16:48:00 -0500 Subject: [PATCH] updates catalog-model changeset to include the tRPC API type Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com> --- .changeset/many-pans-unite.md | 5 +++++ .../components/GraphQlDefinitionWidget/GraphQlDefinition.tsx | 2 +- .../TrpcDefinitionWidget/TrpcApiDefinitionWidget.tsx | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/many-pans-unite.md 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;