dromo-uploader-react
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -9,6 +9,6 @@ import * as React from 'react'; | ||
settings: IDeveloperSettings; | ||
rowHooks?: ((record: IRowHookInput) => IRowHookOutput)[]; | ||
rowHooks?: ((record: IRowHookInput) => IRowHookOutput | Promise<IRowHookOutput>)[]; | ||
columnHooks?: { | ||
fieldName: string; | ||
callback: (values: Array<IColumnHookInput>) => Array<IColumnHookOutput>; | ||
callback: (values: Array<IColumnHookInput>) => Array<IColumnHookOutput> | Promise<Array<IColumnHookOutput>>; | ||
}[]; | ||
@@ -15,0 +15,0 @@ onResults?: (data: any) => void; |
@@ -1,7 +0,1 @@ | ||
/** | ||
* | ||
* This file has the interfaces that may span multiple repos. We will work on | ||
* sharing this file later. | ||
* | ||
*/ | ||
export interface IDeveloperField { | ||
@@ -39,3 +33,3 @@ label: string; | ||
allowCustomFields?: boolean; | ||
maxRecords?: number | null; | ||
maxRecords?: number; | ||
developmentMode?: boolean; | ||
@@ -68,2 +62,11 @@ displayEncoding?: boolean; | ||
} | ||
/** @internal */ | ||
export interface IColumnHook { | ||
fieldName: string; | ||
callback: (values: IColumnHookInput[]) => IColumnHookOutput[] | Promise<IColumnHookOutput[]>; | ||
} | ||
/** @internal */ | ||
export interface IRowHook { | ||
callback(data: IRowHookInput): IRowHookOutput | Promise<IRowHookOutput>; | ||
} | ||
export interface IColumnHookInput { | ||
@@ -70,0 +73,0 @@ index: number; |
{ | ||
"name": "dromo-uploader-react", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "Easy to use data (CSV, TSV, Excel) importer", | ||
@@ -5,0 +5,0 @@ "author": "ankitgoyal100", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
25552
254