Skip to content

Commit 5133b30

Browse files
authored
Merge pull request #128 from devrnt/fix/types
feat: export types
2 parents 6df7614 + 0703ba8 commit 5133b30

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/index.ts

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

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3658,9 +3658,9 @@ caniuse-api@^3.0.0:
36583658
lodash.uniq "^4.5.0"
36593659

36603660
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001165, caniuse-lite@^1.0.30001264:
3661-
version "1.0.30001265"
3662-
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001265.tgz"
3663-
integrity sha512-YzBnspggWV5hep1m9Z6sZVLOt7vrju8xWooFAgN6BA5qvy98qPAPb7vNUzypFaoh2pb3vlfzbDO8tB57UPGbtw==
3661+
version "1.0.30001361"
3662+
resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001361.tgz"
3663+
integrity sha512-ybhCrjNtkFji1/Wto6SSJKkWk6kZgVQsDq5QI83SafsF6FXv2JB4df9eEdH6g8sdGgqTXrFLjAxqBGgYoU3azQ==
36643664

36653665
capture-exit@^2.0.0:
36663666
version "2.0.0"

0 commit comments

Comments
 (0)