Skip to content

Commit

Permalink
TypeScript improvements + lockfile (#8)
Browse files Browse the repository at this point in the history
* fix: resolve compilation error; add lockfile

* chore: improve typing of HomePageXkcdComic

* chore: remove lockfile
  • Loading branch information
benjidotsh authored Apr 19, 2024
1 parent fc1548a commit 5c2b18b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import {
} from '@backstage/core-plugin-api';

import {rootRouteRef} from './routes';
import {createCardExtension} from '@backstage/plugin-home-react';
import {CardExtensionProps, createCardExtension} from '@backstage/plugin-home-react';
import {LAST_INDEX} from "./components/ComicButtons/ComicButtons";
import { XkcdComicProps } from './types';


export const xkcdPlugin = createPlugin({
Expand Down Expand Up @@ -38,7 +39,9 @@ export const XkcdComicCard =
}),
);

export const HomePageXkcdComic = xkcdPlugin.provide(
export const HomePageXkcdComic: (
props: CardExtensionProps<XkcdComicProps>
) => React.JSX.Element = xkcdPlugin.provide(
createCardExtension({
name: 'XkcdComicCard',
title: 'xkcd',
Expand Down

0 comments on commit 5c2b18b

Please sign in to comment.