From 6e913ef3fc7213243cdad5c549873c1a338fb962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Monnot?= Date: Sat, 25 Aug 2018 01:22:02 +0200 Subject: [PATCH] Add type definitions for react-vertical-timeline-component --- .../index.d.ts | 26 +++++++++++++++++++ .../tsconfig.json | 22 ++++++++++++++++ .../tslint.json | 3 +++ 3 files changed, 51 insertions(+) create mode 100644 types/react-vertical-timeline-component/index.d.ts create mode 100644 types/react-vertical-timeline-component/tsconfig.json create mode 100644 types/react-vertical-timeline-component/tslint.json diff --git a/types/react-vertical-timeline-component/index.d.ts b/types/react-vertical-timeline-component/index.d.ts new file mode 100644 index 0000000000..44a9fb3116 --- /dev/null +++ b/types/react-vertical-timeline-component/index.d.ts @@ -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 +// 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 { } +export class VerticalTimelineElement extends React.Component { } diff --git a/types/react-vertical-timeline-component/tsconfig.json b/types/react-vertical-timeline-component/tsconfig.json new file mode 100644 index 0000000000..ca4a35b1cb --- /dev/null +++ b/types/react-vertical-timeline-component/tsconfig.json @@ -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 + } +} diff --git a/types/react-vertical-timeline-component/tslint.json b/types/react-vertical-timeline-component/tslint.json new file mode 100644 index 0000000000..d88586e5bd --- /dev/null +++ b/types/react-vertical-timeline-component/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +}