From 64550bdaabfc35c197076cd6b2f5d595e98b97ab Mon Sep 17 00:00:00 2001 From: Nicholas Boll Date: Mon, 18 Sep 2023 10:21:21 -0600 Subject: [PATCH] docs: Render type parameters in external SymbolDoc symbols The external `SymbolDoc` type did not render type parameters: ```ts Record ``` This fix updates the external symbol type to include the type parameters. --- modules/docs/lib/widgets/external.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/docs/lib/widgets/external.tsx b/modules/docs/lib/widgets/external.tsx index bd0b3d606e..ce4f15af66 100644 --- a/modules/docs/lib/widgets/external.tsx +++ b/modules/docs/lib/widgets/external.tsx @@ -1,10 +1,14 @@ import React from 'react'; import {ExternalHyperlink} from '@workday/canvas-kit-react/button'; +import {renderTypeParameters} from '../widgetUtils'; import {ExternalSymbolValue} from '../../docgen/docTypes'; import {registerWidget} from '../Value'; registerWidget('external', ({value}) => ( - {value.name} + <> + {value.name} + {renderTypeParameters(value.typeParameters)} + ));