mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-04 04:01:52 +00:00
Unwrap all lone ambient external modules
This commit is contained in:
+95
-96
@@ -6,110 +6,109 @@
|
||||
/// <reference path="../react/react.d.ts" />
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module "react-bootstrap-table" {
|
||||
import { ComponentClass, Props, ReactElement } from 'react';
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
interface SelectRow {
|
||||
mode?: string;
|
||||
bgColor?: string;
|
||||
selected?: any[];
|
||||
onSelect?: Function;
|
||||
onSelectAll?: Function;
|
||||
clickToSelect?: boolean;
|
||||
hideSelectColumn?: boolean;
|
||||
clickToSelectAndEditCell?: boolean;
|
||||
showOnlySelected?: boolean;
|
||||
}
|
||||
import { ComponentClass, Props, ReactElement } from 'react';
|
||||
import { EventEmitter } from 'events';
|
||||
|
||||
interface CellEdit {
|
||||
mode?: string;
|
||||
blurToSave?: boolean;
|
||||
afterSaveCell?: Function;
|
||||
}
|
||||
interface SelectRow {
|
||||
mode?: string;
|
||||
bgColor?: string;
|
||||
selected?: any[];
|
||||
onSelect?: Function;
|
||||
onSelectAll?: Function;
|
||||
clickToSelect?: boolean;
|
||||
hideSelectColumn?: boolean;
|
||||
clickToSelectAndEditCell?: boolean;
|
||||
showOnlySelected?: boolean;
|
||||
}
|
||||
|
||||
interface Options {
|
||||
sortName?: string;
|
||||
sortOrder?: string;
|
||||
afterTableComplete?: Function;
|
||||
afterDeleteRow?: Function;
|
||||
afterInsertRow?: Function;
|
||||
afterSearch?: Function;
|
||||
afterColumnFilter?: Function;
|
||||
onRowClick?: Function;
|
||||
page?: number;
|
||||
sizePerPageList?: number[];
|
||||
sizePerPage?: number;
|
||||
paginationSize?: number;
|
||||
onSortChange?: Function;
|
||||
onPageChange?: Function;
|
||||
onSizePerPageList?: Function;
|
||||
noDataText?: string;
|
||||
handleConfirmDeleteRow?: Function;
|
||||
}
|
||||
interface CellEdit {
|
||||
mode?: string;
|
||||
blurToSave?: boolean;
|
||||
afterSaveCell?: Function;
|
||||
}
|
||||
|
||||
interface FetchInfo {
|
||||
dataTotalSize?: number;
|
||||
}
|
||||
interface Options {
|
||||
sortName?: string;
|
||||
sortOrder?: string;
|
||||
afterTableComplete?: Function;
|
||||
afterDeleteRow?: Function;
|
||||
afterInsertRow?: Function;
|
||||
afterSearch?: Function;
|
||||
afterColumnFilter?: Function;
|
||||
onRowClick?: Function;
|
||||
page?: number;
|
||||
sizePerPageList?: number[];
|
||||
sizePerPage?: number;
|
||||
paginationSize?: number;
|
||||
onSortChange?: Function;
|
||||
onPageChange?: Function;
|
||||
onSizePerPageList?: Function;
|
||||
noDataText?: string;
|
||||
handleConfirmDeleteRow?: Function;
|
||||
}
|
||||
|
||||
interface BootstrapTableProps extends Props<BootstrapTable> {
|
||||
keyField?: string;
|
||||
height?: string;
|
||||
maxHeight?: string;
|
||||
data?: any;
|
||||
remote?: boolean;
|
||||
striped?: boolean;
|
||||
bordered?: boolean;
|
||||
hover?: boolean;
|
||||
condensed?: boolean;
|
||||
pagination?: boolean;
|
||||
searchPlaceholder?: string;
|
||||
selectRow?: SelectRow;
|
||||
cellEdit?: CellEdit;
|
||||
insertRow?: boolean;
|
||||
deleteRow?: boolean;
|
||||
search?: boolean;
|
||||
columnFilter?: boolean;
|
||||
trClassName?: any;
|
||||
options?: Options;
|
||||
fetchInfo?: FetchInfo;
|
||||
exportCSV?: boolean;
|
||||
csvFileName?: string;
|
||||
}
|
||||
interface FetchInfo {
|
||||
dataTotalSize?: number;
|
||||
}
|
||||
|
||||
interface BootstrapTable extends ComponentClass<BootstrapTableProps> { }
|
||||
const BootstrapTable: BootstrapTable;
|
||||
interface BootstrapTableProps extends Props<BootstrapTable> {
|
||||
keyField?: string;
|
||||
height?: string;
|
||||
maxHeight?: string;
|
||||
data?: any;
|
||||
remote?: boolean;
|
||||
striped?: boolean;
|
||||
bordered?: boolean;
|
||||
hover?: boolean;
|
||||
condensed?: boolean;
|
||||
pagination?: boolean;
|
||||
searchPlaceholder?: string;
|
||||
selectRow?: SelectRow;
|
||||
cellEdit?: CellEdit;
|
||||
insertRow?: boolean;
|
||||
deleteRow?: boolean;
|
||||
search?: boolean;
|
||||
columnFilter?: boolean;
|
||||
trClassName?: any;
|
||||
options?: Options;
|
||||
fetchInfo?: FetchInfo;
|
||||
exportCSV?: boolean;
|
||||
csvFileName?: string;
|
||||
}
|
||||
|
||||
interface TableHeaderColumnProps extends Props<TableHeaderColumn> {
|
||||
dataField?: string;
|
||||
dataAlign?: string;
|
||||
dataSort?: boolean;
|
||||
onSort?: Function;
|
||||
dataFormat?: Function;
|
||||
isKey?: boolean;
|
||||
editable?: any;
|
||||
hidden?: boolean;
|
||||
className?: string;
|
||||
width?: string;
|
||||
sortFunc?: Function;
|
||||
columnClassName?: any;
|
||||
filterFormatted?: boolean;
|
||||
sort?: string;
|
||||
}
|
||||
interface BootstrapTable extends ComponentClass<BootstrapTableProps> { }
|
||||
declare const BootstrapTable: BootstrapTable;
|
||||
|
||||
interface TableHeaderColumn extends ComponentClass<TableHeaderColumnProps> { }
|
||||
const TableHeaderColumn: TableHeaderColumn;
|
||||
interface TableHeaderColumnProps extends Props<TableHeaderColumn> {
|
||||
dataField?: string;
|
||||
dataAlign?: string;
|
||||
dataSort?: boolean;
|
||||
onSort?: Function;
|
||||
dataFormat?: Function;
|
||||
isKey?: boolean;
|
||||
editable?: any;
|
||||
hidden?: boolean;
|
||||
className?: string;
|
||||
width?: string;
|
||||
sortFunc?: Function;
|
||||
columnClassName?: any;
|
||||
filterFormatted?: boolean;
|
||||
sort?: string;
|
||||
}
|
||||
|
||||
class TableDataSet extends EventEmitter {
|
||||
constructor(data: any);
|
||||
setData(data: any): void;
|
||||
clear(): void;
|
||||
getData(): any;
|
||||
}
|
||||
interface TableHeaderColumn extends ComponentClass<TableHeaderColumnProps> { }
|
||||
declare const TableHeaderColumn: TableHeaderColumn;
|
||||
|
||||
export {
|
||||
BootstrapTable,
|
||||
TableHeaderColumn,
|
||||
TableDataSet
|
||||
}
|
||||
declare class TableDataSet extends EventEmitter {
|
||||
constructor(data: any);
|
||||
setData(data: any): void;
|
||||
clear(): void;
|
||||
getData(): any;
|
||||
}
|
||||
|
||||
export {
|
||||
BootstrapTable,
|
||||
TableHeaderColumn,
|
||||
TableDataSet
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user