aboutsummaryrefslogtreecommitdiffstats
path: root/packages/typescript-typings/types/react-joyride/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/typescript-typings/types/react-joyride/index.d.ts')
-rw-r--r--packages/typescript-typings/types/react-joyride/index.d.ts21
1 files changed, 19 insertions, 2 deletions
diff --git a/packages/typescript-typings/types/react-joyride/index.d.ts b/packages/typescript-typings/types/react-joyride/index.d.ts
index 6c1a5b092..f126e4c86 100644
--- a/packages/typescript-typings/types/react-joyride/index.d.ts
+++ b/packages/typescript-typings/types/react-joyride/index.d.ts
@@ -37,17 +37,34 @@ declare module 'react-joyride' {
[prop: string]: any;
}
- interface StyleOptionsProp {
+ export interface StyleOptionsProp {
options: StyleOptions;
}
+ interface CallbackMetadata {
+ type:
+ | 'tour:start'
+ | 'step:before'
+ | 'beacon'
+ | 'tooltip'
+ | 'close'
+ | 'step:after'
+ | 'tour:end'
+ | 'tour:status'
+ | 'error:target_not_found'
+ | 'error';
+ step: number;
+ }
+
+ export type CallbackData = CallbackMetadata & State;
+
export interface Props {
steps?: Step[];
beaconComponent?: React.ReactNode;
disableOverlayClose?: boolean;
run?: boolean;
stepIndex?: number;
- callback?: (options: any) => void;
+ callback?: (data: CallbackData) => void;
debug?: boolean;
styles?: StyleOptionsProp;
}