chore: simplify TransformLink

Signed-off-by: Côme Tresarrieu <c.tresarrieu@gmail.com>
This commit is contained in:
Côme Tresarrieu
2022-06-28 16:23:39 +02:00
parent 411e8e6081
commit 31bcb85595
@@ -64,12 +64,7 @@ const useStyles = makeStyles<BackstageTheme>(
{ name: 'BackstageMarkdownContent' },
);
type TransformLink = (
href: string,
// Complex type from internal react-markdown dep library (hast)[./node_modules/@types/hast/index.d.ts]
children: any[],
title: string | null,
) => string;
type TransformLink = (href: string) => string;
type Props = {
content: string;