chore: fixing types for uiSchema

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2022-11-22 10:44:29 +01:00
parent a75a2da2f2
commit eb2b9db729
2 changed files with 4 additions and 7 deletions
@@ -29,7 +29,8 @@ import {
useRouteRefParams,
useApi,
} from '@backstage/core-plugin-api';
import { FormProps, IChangeEvent, UiSchema, withTheme } from '@rjsf/core';
import { FormProps, IChangeEvent, withTheme } from '@rjsf/core';
import { UiSchema } from '@rjsf/utils';
import { Theme as MuiTheme } from '@rjsf/material-ui';
import React, { ComponentType, useState } from 'react';
import { transformSchemaToProps } from './schema';
@@ -75,11 +76,7 @@ export function getSchemasFromSteps(steps: Step[]): {
return steps.map(({ schema }) => ({
mergedSchema: schema,
...extractSchemaFromStep(schema),
})) as unknown as {
uiSchema: UiSchema;
mergedSchema: JsonObject;
schema: JsonObject;
}[];
}));
}
/**
+1 -1
View File
@@ -14,7 +14,7 @@
* limitations under the License.
*/
import { UiSchema } from '@rjsf/core';
import { UiSchema } from '@rjsf/utils';
import { JsonObject } from '@backstage/types';
/**