UNPKG

use-wizard

Version:

A dead-easy-to-use light-weight react hook to handle multi-paths wizards (and simple wizards too) and navigate into them.

13 lines 547 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWizardLength = void 0; var isTypeLinearS_1 = require("../types/typeGuards/isTypeLinearS"); var getWizardLength = function (args) { return function () { if (!isTypeLinearS_1.isTypeLinearS(args.options)) { console.log('Wizard warning: method getWizardLength does not work with this type of wizard'); return -1; } return args.options.length; }; }; exports.getWizardLength = getWizardLength; //# sourceMappingURL=getWizardLength.js.map