mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-08 16:40:30 +08:00
Made optional parameters optional, fixed DataView to implement DataProvider and corrected method signature in DataView to match DataProvider interface
This commit is contained in:
Vendored
+4
-4
@@ -1459,15 +1459,15 @@ declare module Slick {
|
||||
export module Data {
|
||||
|
||||
export interface DataViewOptions<T extends Slick.SlickData> {
|
||||
groupItemMetadataProvider: GroupItemMetadataProvider<T>;
|
||||
inlineFilters: boolean;
|
||||
groupItemMetadataProvider?: GroupItemMetadataProvider<T>;
|
||||
inlineFilters?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Item -> Data by index
|
||||
* Row -> Data by row
|
||||
**/
|
||||
export class DataView<T extends Slick.SlickData> {
|
||||
export class DataView<T extends Slick.SlickData> implements DataProvider {
|
||||
|
||||
constructor(options: DataViewOptions<T>);
|
||||
|
||||
@@ -1537,7 +1537,7 @@ declare module Slick {
|
||||
public syncGridCellCssStyles(grid: Grid<T>, key: string): void;
|
||||
|
||||
public getLength(): number;
|
||||
public getItem(): void;
|
||||
public getItem(index: number): SlickData;
|
||||
public getItemMetadata(): void;
|
||||
|
||||
public onRowCountChanged: Slick.SlickEvent<OnRowCountChangedEventData>;
|
||||
|
||||
Reference in New Issue
Block a user