Skip to content

Commit

Permalink
lib
Browse files Browse the repository at this point in the history
  • Loading branch information
exced committed Jan 9, 2018
1 parent ea23066 commit 186d325
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,24 @@ import * as React from "react";

declare module "react-file-manager" {

export interface FileManagerProps extends React.Props {
interface FileManagerProps extends React.Props {
map: {
id: string | number,
children: Array<string | number>,
parent: string | number
},
rootId: string | number,
onChange: (map: object) => void,
onChangeRow?: (target: object, source: object, destination: object) => void,
onChangeColumn?: (target: object, source: object, destination: object) => void,
renderItem: (item: object, index: number) => React.Component,
renderPreview: (item: object, index: number) => React.Component,
itemSelectedColor?: string,
dropBackgroundColor?: string,
}

}
export default class FileManager extends React.Component<FileManagerProps, {}> {

export default class FileManager extends React.Component<FileManagerProps, {}> {

}
}

}

0 comments on commit 186d325

Please sign in to comment.