introduce react-user-tour typings

This commit is contained in:
Carlo Cancellieri
2016-07-06 18:45:56 +02:00
parent 8df97176d2
commit 9757c2f96c
2 changed files with 36 additions and 0 deletions

View 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
View 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
}