set PropsWithChildren as explicit type on components

Signed-off-by: Oleg S <97077423+RobotSail@users.noreply.github.com>
This commit is contained in:
Oleg S
2023-05-05 13:26:58 -04:00
committed by Fredrik Adelöw
parent 38d8ad9373
commit 74b216ee4e
64 changed files with 149 additions and 110 deletions
+3 -1
View File
@@ -207,7 +207,9 @@ export interface ScaffolderGetIntegrationsListResponse {
}
// @public
export const ScaffolderLayouts: React.ComponentType;
export const ScaffolderLayouts: React_2.ComponentType<
React_2.PropsWithChildren<{}>
>;
// @public (undocumented)
export type ScaffolderOutputLink = {
@@ -17,6 +17,7 @@
import { LAYOUTS_KEY, LAYOUTS_WRAPPER_KEY } from './keys';
import { attachComponentData, Extension } from '@backstage/core-plugin-api';
import type { FormProps as SchemaFormProps } from '@rjsf/core-v5';
import React from 'react';
/**
* The field template from `@rjsf/core` which is a react component that gets passed `@rjsf/core` field related props.
@@ -67,7 +68,8 @@ export function createScaffolderLayout<TInputProps = unknown>(
*
* @public
*/
export const ScaffolderLayouts: React.ComponentType = (): JSX.Element | null =>
null;
export const ScaffolderLayouts: React.ComponentType<
React.PropsWithChildren<{}>
> = (): JSX.Element | null => null;
attachComponentData(ScaffolderLayouts, LAYOUTS_WRAPPER_KEY, true);