From 5e50036c4c450fe9e83bc3fe2f1ee215ab6547fa Mon Sep 17 00:00:00 2001 From: Charles Salmon Date: Thu, 28 Feb 2019 11:58:08 +1300 Subject: [PATCH] Add supported methods specified in documentation to `FormWizard` type definitions. --- types/FormWizard.ts | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/types/FormWizard.ts b/types/FormWizard.ts index a392cb6..c2dd520 100644 --- a/types/FormWizard.ts +++ b/types/FormWizard.ts @@ -101,7 +101,6 @@ export declare class Wizard { */ stepSize: StepSizeType - /** * Name of the transition when transitioning between steps. * @@ -115,4 +114,29 @@ export declare class Wizard { * Default value: 0 */ startIndex: number + + /** + * Resets the wizard to its initial state. + */ + reset: () => void + + /** + * Activates all steps, as if the user has navigated to each of them. + */ + activateAll: () => void + + /** + * Navigates to the next tab. + */ + nextTab: () => void + + /** + * Navigates to the previous tab. + */ + prevTab: () => void + + /** + * Navigates from one tab to another. Note that this method does not trigger validaiton methods. + */ + changeTab: (oldIndex: number, newIndex: number, emitChangeEvent?: boolean) => boolean }