mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-23 13:50:33 +03:00
Ensure that it is possible to import type definitions from vue-form-wizard directly (as opposed to needing to reference e.g. vue-form-wizard/types/FormWizard). Leave named exports which are not defined in types/index.d.ts for backwards compatibility.
This commit is contained in:
Vendored
+11
-6
@@ -3,13 +3,18 @@ import { PluginFunction } from "vue";
|
|||||||
|
|
||||||
export function install (vue: typeof Vue): void
|
export function install (vue: typeof Vue): void
|
||||||
|
|
||||||
import { Wizard } from './FormWizard'
|
export {
|
||||||
import { Tab } from './TabContent'
|
Wizard as FormWizard,
|
||||||
import { Step } from './WizardStep'
|
ShapeType,
|
||||||
|
LayoutType,
|
||||||
|
StepSizeType
|
||||||
|
} from "./FormWizard"
|
||||||
|
export { Tab as TabContent } from "./TabContent"
|
||||||
|
export { Step as WizardStep } from "./WizardStep"
|
||||||
|
|
||||||
export class FormWizard extends Wizard {}
|
import { Wizard as FormWizard } from "./FormWizard"
|
||||||
export class TabContent extends Tab {}
|
import { Tab as TabContent } from "./TabContent"
|
||||||
export class WizardStep extends Step {}
|
import { Step as WizardStep } from "./WizardStep"
|
||||||
|
|
||||||
declare class VueFormWizard {
|
declare class VueFormWizard {
|
||||||
static install: PluginFunction<never>;
|
static install: PluginFunction<never>;
|
||||||
|
|||||||
Reference in New Issue
Block a user