Skip to content

Commit fbd179b

Browse files
committed
fix(pf4): fix types for wizard buttons
1 parent 10d9f3c commit fbd179b

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

packages/pf4-component-mapper/src/files/wizard.d.ts

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,23 @@ export interface WizardNextStepMapper {
2828

2929
export type WizardNextStep = string | WizardNextStepMapper | WizardNextStepFunction;
3030

31+
export interface SelectNextFunction {
32+
(nextStep: WizardNextStep, getState: Function): string;
33+
}
34+
35+
export interface HandleNextFunction {
36+
(nextStep: string): void;
37+
}
38+
3139
export interface WizardButtonsProps {
32-
ConditionalNext: React.ComponentType;
33-
SubmitButton: React.ComponentType;
34-
SimpleNext: React.ComponentType;
35-
formOptions: FormOptions;
3640
disableBack?: boolean;
37-
handlePrev: any;
38-
nextStep?: string | number;
39-
FieldProvider?: React.ComponentType;
40-
handleNext: any;
41+
handlePrev: Function;
42+
nextStep?: WizardNextStep;
43+
handleNext: HandleNextFunction;
4144
buttonsClassname?: string;
42-
buttonLabels: AnyObject;
43-
renderNextButton: any;
45+
buttonLabels: WizardButtonLabels;
46+
renderNextButton: Function;
47+
selectNext: SelectNextFunction;
4448
}
4549

4650
export interface WizardField {

0 commit comments

Comments
 (0)