diff --git a/src/NodeGroup/index.d.ts b/src/NodeGroup/index.d.ts index c2a2e44..70b83ed 100644 --- a/src/NodeGroup/index.d.ts +++ b/src/NodeGroup/index.d.ts @@ -1,17 +1,19 @@ -import * as React from "react"; +import * as React from "react" import { HashMap, GetInterpolator } from '..' -export interface INodeGroupProps { - data: Array; - keyAccessor: (data: any, index: number) => string | number; - interpolation?: GetInterpolator; - start: (data: any, index: number) => HashMap; - enter?: (data: any, index: number) => (HashMap | Array); - update?: (data: any, index: number) => (HashMap | Array); - leave?: (data: any, index: number) => (HashMap | Array); - children: (nodes: Array) => React.ReactElement; +export interface INodeGroupProps { + data: Array + keyAccessor: (data: T, index: number) => string | number + interpolation?: GetInterpolator + start: (data: T, index: number) => HashMap + enter?: (data: T, index: number) => HashMap | Array + update?: (data: T, index: number) => HashMap | Array + leave?: (data: T, index: number) => HashMap | Array + children: (nodes: Array) => React.ReactElement } -export declare class INodeGroup extends React.Component { } +export declare class INodeGroup extends React.Component< + INodeGroupProps +> {} -export default INodeGroup \ No newline at end of file +export default INodeGroup