mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
introduce react-user-tour typings
This commit is contained in:
6
react-user-tour/react-user-tour-tests.ts
Normal file
6
react-user-tour/react-user-tour-tests.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// Tests for type definitions for react-user-tour
|
||||
// Project: https://github.com/socialtables/react-user-tour
|
||||
// Definitions by: Carlo Cancellieri <https://github.com/ccancellieri>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference path="react-user-tour.d.ts" />
|
||||
30
react-user-tour/react-user-tour.d.ts
vendored
Normal file
30
react-user-tour/react-user-tour.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Type definitions for react-user-tour
|
||||
// Project: https://github.com/socialtables/react-user-tour
|
||||
// Definitions by: Carlo Cancellieri <https://github.com/ccancellieri>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module "react-user-tour" {
|
||||
|
||||
// Import React
|
||||
import { HTMLAttributes, ComponentClass } from 'react';
|
||||
|
||||
interface TourStep {
|
||||
step: number
|
||||
selector: string
|
||||
title: string
|
||||
body: string
|
||||
position?: string
|
||||
}
|
||||
|
||||
interface TourProps extends HTMLAttributes {
|
||||
steps:TourStep[]
|
||||
active:boolean
|
||||
step:number
|
||||
onNext:any
|
||||
onBack:any
|
||||
onCancel:any
|
||||
}
|
||||
|
||||
var ReactUserTour: ComponentClass<TourProps>;
|
||||
export default ReactUserTour
|
||||
}
|
||||
Reference in New Issue
Block a user