build: fix typescript errors
This commit is contained in:
parent
7743a73476
commit
24947cc40b
@ -14,7 +14,7 @@ export type RowValues = {
|
||||
export type Values = Exclude<keyof RowValues, 'key'>;
|
||||
|
||||
export type RowOptions = {
|
||||
[ValueName in Values]?: BaseOption<RowValues[ValueName]>[];
|
||||
[ValueName in Values]?: BaseOption[];
|
||||
} & { key: Keys };
|
||||
|
||||
export type RowStatuses = Record<Values, Status> & {
|
||||
|
||||
@ -18,7 +18,8 @@ function renderFormRows(rowsConfig: FormTabRows) {
|
||||
const renderedElements = elements.map((elementName) => {
|
||||
const render = elementsRender[elementName]?.render;
|
||||
|
||||
return render();
|
||||
// eslint-disable-next-line object-curly-newline
|
||||
return render({});
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@ -29,4 +29,4 @@ export default (function Segmented({
|
||||
/>
|
||||
</FormItem>
|
||||
);
|
||||
} as FC<SegmentedProps>);
|
||||
} as FC<Partial<SegmentedProps>>);
|
||||
|
||||
@ -13,6 +13,7 @@ const nextConfig = {
|
||||
compiler: {
|
||||
styledComponents: true,
|
||||
},
|
||||
pageExtensions: ['tsx', 'jsx'],
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user