chore: export added page props

Signed-off-by: MitchWijt <mitchel@wijt.net>
This commit is contained in:
MitchWijt
2023-02-01 08:06:49 +01:00
parent d1fb4b7bf1
commit ab1c6c6338
3 changed files with 12 additions and 3 deletions
+9 -2
View File
@@ -43,7 +43,14 @@ export class GraphQLVoyagerEndpoints implements GraphQLVoyagerApi {
}
// @public (undocumented)
export const GraphqlVoyagerPage: () => JSX.Element;
export const GraphqlVoyagerPage: (
props: GraphQLVoyagerPageProps,
) => JSX.Element;
// @public (undocumented)
export type GraphQLVoyagerPageProps = {
title?: string;
};
// @public (undocumented)
export const graphqlVoyagerPlugin: BackstagePlugin<
@@ -58,7 +65,7 @@ export const graphqlVoyagerPlugin: BackstagePlugin<
export const introspectionQuery: string;
// @public (undocumented)
export const Router: () => JSX.Element;
export const Router: (props: GraphQLVoyagerPageProps) => JSX.Element;
// (No @packageDocumentation comment for this package)
```
@@ -27,7 +27,8 @@ import { graphQlVoyagerApiRef } from '../../lib/api';
import useAsync from 'react-use/lib/useAsync';
import { GraphQLVoyagerBrowser } from '../GraphQLVoyagerBrowser';
type GraphQLVoyagerPageProps = {
/** @public */
export type GraphQLVoyagerPageProps = {
title?: string;
};
+1
View File
@@ -15,4 +15,5 @@
*/
export { graphqlVoyagerPlugin, GraphqlVoyagerPage } from './plugin';
export { GraphQLVoyagerPage as Router } from './components';
export type { GraphQLVoyagerPageProps } from './components';
export * from './lib/api';