Add type definitions for react-vertical-timeline-component

This commit is contained in:
Stéphane Monnot
2018-08-25 01:22:02 +02:00
parent 969e8390d3
commit 6e913ef3fc
3 changed files with 51 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
// Type definitions for react-vertical-timeline-component 2.1
// Project: https://github.com/stephane-monnot/react-vertical-timeline
// Definitions by: Stéphane Monnot <https://github.com/stephane-monnot>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from "react";
export interface VerticalTimelineProps {
animate?: boolean;
className?: string;
}
export interface VerticalTimelineElementProps {
id?: string;
className?: string;
date?: string;
iconOnClick?: () => void;
iconStyle?: React.CSSProperties;
icon?: React.ReactNode;
position?: string;
style?: React.CSSProperties;
}
export class VerticalTimeline extends React.Component<VerticalTimelineProps> { }
export class VerticalTimelineElement extends React.Component<VerticalTimelineElementProps> { }
@@ -0,0 +1,22 @@
{
"files": [
"index.d.ts"
],
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
}
}
@@ -0,0 +1,3 @@
{
"extends": "dtslint/dt.json"
}