diff --git a/package.json b/package.json index 7535db8..71ec7a4 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,10 @@ "name": "react-event-timeline", "description": "A responsive event timeline in React.js", "main": "dist/index.js", + "typings": "typings", "files": [ - "src", "dist", + "typings", "README" ], "scripts": { diff --git a/typings/index.d.ts b/typings/index.d.ts new file mode 100644 index 0000000..d790c47 --- /dev/null +++ b/typings/index.d.ts @@ -0,0 +1,42 @@ +import * as React from 'react'; + +export interface TimelineProps { + orientation: string + style: React.CSSProperties, + lineColor: string, + lineStyle: object +} + +export interface TimelineEventProps { + title: React.ReactNode + subtitle: React.ReactNode + createdAt: React.ReactNode + children: React.ReactNode + buttons: React.ReactNode + container: string + icon: React.ReactNode + iconColor: string + iconStyle: object + bubbleStyle: object + orientation: string + contentStyle: object + cardHeaderStyle: object + style: object + titleStyle: object + subtitleStyle: object + collapsible: boolean + showContent: boolean +} + +export interface TimelineBlipProps { + title: React.ReactNode, + icon: React.ReactNode, + iconColor: string, + iconStyle: object, + style: object, + orientation: string +} + +export class Timeline extends React.Component {} +export class TimelineEvent extends React.Component {} +export class TimelineBlip extends React.Component {}