chore: export added page props
Signed-off-by: MitchWijt <mitchel@wijt.net>
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -15,4 +15,5 @@
|
||||
*/
|
||||
export { graphqlVoyagerPlugin, GraphqlVoyagerPage } from './plugin';
|
||||
export { GraphQLVoyagerPage as Router } from './components';
|
||||
export type { GraphQLVoyagerPageProps } from './components';
|
||||
export * from './lib/api';
|
||||
|
||||
Reference in New Issue
Block a user