From 186d3250c023db2fc31e8ef98872099bda3eb241 Mon Sep 17 00:00:00 2001 From: exced Date: Tue, 9 Jan 2018 15:34:44 +0100 Subject: [PATCH] lib --- lib/index.d.ts | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/lib/index.d.ts b/lib/index.d.ts index 14147ad..288f88f 100644 --- a/lib/index.d.ts +++ b/lib/index.d.ts @@ -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, + 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 { - export default class FileManager extends React.Component { - - } + } }