mirror of
https://github.com/tenrok/vue-form-wizard.git
synced 2026-06-08 19:42:24 +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
|
||||
|
||||
import { Wizard } from './FormWizard'
|
||||
import { Tab } from './TabContent'
|
||||
import { Step } from './WizardStep'
|
||||
export {
|
||||
Wizard as FormWizard,
|
||||
ShapeType,
|
||||
LayoutType,
|
||||
StepSizeType
|
||||
} from "./FormWizard"
|
||||
export { Tab as TabContent } from "./TabContent"
|
||||
export { Step as WizardStep } from "./WizardStep"
|
||||
|
||||
export class FormWizard extends Wizard {}
|
||||
export class TabContent extends Tab {}
|
||||
export class WizardStep extends Step {}
|
||||
import { Wizard as FormWizard } from "./FormWizard"
|
||||
import { Tab as TabContent } from "./TabContent"
|
||||
import { Step as WizardStep } from "./WizardStep"
|
||||
|
||||
declare class VueFormWizard {
|
||||
static install: PluginFunction<never>;
|
||||
|
||||
Reference in New Issue
Block a user