Skip to content

Commit 8b4d6b4

Browse files
committed
fix(renderer): use field API and wizard context types
1 parent c8738a3 commit 8b4d6b4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/react-form-renderer/src/use-field-api/use-field-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export interface UseFieldApiConfig extends AnyObject {
2525
useWarnings?: boolean;
2626
resolveProps?: (props: any, fieldProps: any, formOptions: any) => any;
2727
initializeOnMount?: boolean;
28-
component: string;
28+
component?: string;
2929
render?: any;
3030
clearOnUnmount?: boolean;
3131
dataType?: DataType;

packages/react-form-renderer/src/wizard-context/wizard-context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ export type NextStep =
1717
export interface WizardContextValue {
1818
formOptions: FormOptions;
1919
crossroads: string[];
20-
currentStep: { fields?: Field[]; name: string; title?: string; nextStep?: NextStep } | undefined;
20+
currentStep: { fields?: Field[]; name: string; title?: string; nextStep?: NextStep; isProgressAfterSubmissionStep?: boolean } | undefined;
2121
handlePrev: Function;
2222
onKeyDown: Function;
2323
jumpToStep: Function;
24-
setPrevSteps: Function;
24+
setPrevSteps: () => void;
2525
handleNext: Function;
26-
navSchema: Object;
26+
navSchema: Record<string, any>[];
2727
activeStepIndex: number;
2828
maxStepIndex: number;
2929
isDynamic: boolean;

0 commit comments

Comments
 (0)