Installation
npm install --save @types/angular-wizard
Summary
This package contains type definitions for angular-wizard (https://github.com/mgonto/angular-wizard).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/angular-wizard.
index.d.ts
import * as angular from "angular";
declare module "angular" {
export namespace mgoAngularWizard {
interface WizardHandler {
wizard(name?: string): Wizard;
addWizard(name: string, wizard: Wizard): void;
removeWizard(name: string): void;
}
interface Wizard {
next(nextHandler?: () => boolean): void;
previous(): void;
cancel: () => void;
goTo(step: number | string): void;
finish(): void;
reset: () => void;
addStep: (step: WzStep) => void;
currentStep: () => WzStep;
currentStepNumber(): number;
currentStepDescription: () => string;
currentStepTitle: () => string;
getEnabledSteps(): WzStep[];
totalStepCount(): number;
/** Set the edit mode of the wizard.
* Setting editMode to `true` will make ALL steps accessible,
* setting edit mode to `false` will make all steps with an index lower than
* the latest "completed" step accessible.
*/
setEditMode(editMode: boolean): void;
}
interface WzStep {
canenter: (...args: any[]) => boolean;
canexit: (...args: any[]) => boolean;
description: string;
selected: boolean;
title: string;
wzData: any;
wzTitle: string;
}
}
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:04 GMT
- Dependencies: @types/angular
Credits
These definitions were written by Marko Jurisic, Ronald Wildenberg, and Rannie Peralta.