From cc9a3238ccb29df4287ff0fb6b0b962c3df44a71 Mon Sep 17 00:00:00 2001 From: hirasaki1985 Date: Wed, 12 Jun 2019 16:59:22 +0900 Subject: [PATCH] Added index.d.ts for tsx(typescript) --- index.d.ts | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 index.d.ts diff --git a/index.d.ts b/index.d.ts new file mode 100644 index 00000000..2c06ca08 --- /dev/null +++ b/index.d.ts @@ -0,0 +1,90 @@ +// Type definitions for ReactNativeChartKit 2.6 +// Project: https://github.com/indiespirit/react-native-chart-kit +// TypeScript Version: 3.0 + +import * as React from 'react' + +// LineChart +export interface LineChartProps { + data: object + width: number + height: number + withDots?: boolean + withShadow?: boolean + withInnerLines?: boolean + withOuterLines?: boolean + fromZero?: boolean + yAxisLabel?: string + chartConfig: object + decorator?: Function + onDataPointClick?: Function + style?: object + bezier?: boolean +} + +export class LineChart extends React.Component {} + +// ProgressChart +export interface ProgressChartProps { + data: Array + width: number + height: number + chartConfig: object +} + +export class ProgressChart extends React.Component {} + +// BarChart +export interface BarChartProps { + data: object + width: number + height: number + fromZero?: boolean + yAxisLabel: string + chartConfig: object + style?: object +} + +export class BarChart extends React.Component {} + +// StackedBarChart +export interface StackedBarChartProps { + data: object + width: number + height: number + chartConfig: object + style?: object +} + +export class StackedBarChart extends React.Component {} + +// PieChart +export interface PieChartProps { + data: Array + width: number + height: number + chartConfig: object + accessor: string + backgroundColor: string + paddingLeft: string + center?: Array + absolute?: boolean +} + +export class PieChart extends React.Component {} + +// ContributionGraph +export interface ContributionGraphProps { + values: Array + endDate: Date + numDays: number + width: number + height: number + chartConfig: object + accessor?: string +} + +export class ContributionGraph extends React.Component {} + +// AbstractChart +export class AbstractChart extends React.Component {}