mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
Add type definitions for react-vertical-timeline-component
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user