Skip to content

Commit 76c8b4e

Browse files
authored
feat: export types
1 parent 6df7614 commit 76c8b4e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/index.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
1-
export { default as Wizard } from './wizard';
2-
export { default as useWizard } from './useWizard';
1+
import { default as Wizard } from './wizard';
2+
import { default as useWizard } from './useWizard';
3+
4+
// Type re-export workaround, to stay compatible with TS 3.7 and lower
5+
import {
6+
WizardProps as _WizardProps,
7+
WizardValues as _WizardValues,
8+
Handler as _Handler,
9+
} from './types';
10+
11+
export type WizardProps = _WizardProps;
12+
export type WizardValues = _WizardValues;
13+
export type Handler = _Handler;
14+
15+
export { Wizard, useWizard };

0 commit comments

Comments
 (0)