From c6ac0d5fd037b56cc89b6c1e78c8f385fd818c60 Mon Sep 17 00:00:00 2001 From: guptaamol Date: Tue, 30 Oct 2018 18:37:45 +0530 Subject: [PATCH] feat: Improved type definition for Accordion.d.ts (#258) --- Accordion.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Accordion.d.ts b/Accordion.d.ts index da4b2ee..1a8e81f 100644 --- a/Accordion.d.ts +++ b/Accordion.d.ts @@ -2,40 +2,40 @@ import * as React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; import { EasingMode } from './index'; -export interface AccordionProps { +export interface AccordionProps { /** * An array of sections passed to the render methods */ - sections: any[]; + sections: T[]; /** * A function that should return a renderable representing the header */ renderHeader( - content: any, + content: T, index: number, isActive: boolean, - sections: any[] + sections: T[] ): React.ReactElement<{}>; /** * A function that should return a renderable representing the section title above the touchable */ renderSectionTitle?( - content: any, + content: T, index: number, isActive: boolean, - sections: any[] + sections: T[] ): React.ReactElement<{}>; /** * A function that should return a renderable representing the content */ renderContent( - content: any, + content: T, index: number, isActive: boolean, - sections: any[] + sections: T[] ): React.ReactElement<{}>; /** @@ -108,4 +108,4 @@ export interface AccordionProps { sectionContainerStyle?: StyleProp; } -export default class Accordion extends React.Component {} +export default class Accordion extends React.Component> {}