mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add more folders to strict compile (#8954)
* add more folders to strictire compile, add more strict compile options * update ci * remove unnecessary assertion
This commit is contained in:
39
src/typings/slickgrid.d.ts
vendored
39
src/typings/slickgrid.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Generated by typings
|
||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/5607f54defce88bc52a0440288f434cafffdb5ce/slickgrid/index.d.ts
|
||||
interface DOMEvent extends Event {}
|
||||
interface DOMEvent extends Event { }
|
||||
|
||||
declare namespace Slick {
|
||||
|
||||
@@ -351,7 +351,7 @@ declare namespace Slick {
|
||||
* @static
|
||||
* @constructor
|
||||
**/
|
||||
export var GlobalEditorLock: EditorLock<Slick.SlickData>;
|
||||
export let GlobalEditorLock: EditorLock<Slick.SlickData>;
|
||||
|
||||
/**
|
||||
* slick.grid.js
|
||||
@@ -370,7 +370,7 @@ declare namespace Slick {
|
||||
* @param colDef
|
||||
* @return
|
||||
**/
|
||||
asyncPostRender?: (cellNode:any, row:any, dataContext:any, colDef:any) => void;
|
||||
asyncPostRender?: (cellNode: any, row: any, dataContext: any, colDef: any) => void;
|
||||
|
||||
/**
|
||||
* Used by the the slick.rowMoveManager.js plugin for moving rows. Has no effect without the plugin installed.
|
||||
@@ -699,8 +699,7 @@ declare namespace Slick {
|
||||
getItems(): Array<T>;
|
||||
}
|
||||
|
||||
export interface SlickData extends Object {
|
||||
}
|
||||
export type SlickData = { [key: string]: any };
|
||||
|
||||
export interface RowMetadata<T> {
|
||||
/**
|
||||
@@ -757,7 +756,7 @@ declare namespace Slick {
|
||||
/**
|
||||
* Number of columns this cell will span. Can also contain "*" to indicate that the cell should span the rest of the row.
|
||||
*/
|
||||
colspan?: number|string;
|
||||
colspan?: number | string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -801,8 +800,8 @@ declare namespace Slick {
|
||||
* @param options Additional options. See Grid Options for a list of options that can be included.
|
||||
**/
|
||||
constructor(
|
||||
container: string|HTMLElement|JQuery,
|
||||
data: T[]|DataProvider<T>,
|
||||
container: string | HTMLElement | JQuery,
|
||||
data: T[] | DataProvider<T>,
|
||||
columns: Column<T>[],
|
||||
options: GridOptions<T>);
|
||||
|
||||
@@ -1254,7 +1253,7 @@ declare namespace Slick {
|
||||
// #region Editors
|
||||
|
||||
public getEditorLock(): EditorLock<any>;
|
||||
public getEditController(): { commitCurrentEdit():boolean; cancelCurrentEdit():boolean; };
|
||||
public getEditController(): { commitCurrentEdit(): boolean; cancelCurrentEdit(): boolean; };
|
||||
|
||||
// #endregion Editors
|
||||
}
|
||||
@@ -1428,7 +1427,7 @@ declare namespace Slick {
|
||||
|
||||
}
|
||||
|
||||
export interface OnRenderedEventArgs<T extends SlickData> extends GridEventArgs<T>{
|
||||
export interface OnRenderedEventArgs<T extends SlickData> extends GridEventArgs<T> {
|
||||
startRow: number;
|
||||
endRow: number;
|
||||
}
|
||||
@@ -1487,8 +1486,8 @@ declare namespace Slick {
|
||||
public init(): void;
|
||||
public destroy(): void;
|
||||
public focus(): void;
|
||||
public loadValue(item:any): void; // todo: typeof(item)
|
||||
public applyValue(item:any, state: string): void; // todo: typeof(item)
|
||||
public loadValue(item: any): void; // todo: typeof(item)
|
||||
public applyValue(item: any, state: string): void; // todo: typeof(item)
|
||||
public isValueChanged(): boolean;
|
||||
public serializeValue(): any;
|
||||
public validate(): ValidateResults;
|
||||
@@ -1549,14 +1548,14 @@ declare namespace Slick {
|
||||
}
|
||||
|
||||
export interface Formatter<T extends SlickData> {
|
||||
(row: number, cell: number, value: any, columnDef: Column<T>, dataContext: SlickData): string | undefined;
|
||||
(row: number, cell: number, value: any, columnDef: Column<T>, dataContext: SlickData): string | undefined;
|
||||
}
|
||||
|
||||
export module Formatters {
|
||||
var PercentComplete: Formatter<Slick.SlickData>;
|
||||
var PercentCompleteBar: Formatter<Slick.SlickData>;
|
||||
var YesNo: Formatter<Slick.SlickData>;
|
||||
var Checkmark: Formatter<Slick.SlickData>;
|
||||
let PercentComplete: Formatter<Slick.SlickData>;
|
||||
let PercentCompleteBar: Formatter<Slick.SlickData>;
|
||||
let YesNo: Formatter<Slick.SlickData>;
|
||||
let Checkmark: Formatter<Slick.SlickData>;
|
||||
}
|
||||
|
||||
export module Data {
|
||||
@@ -1580,7 +1579,7 @@ declare namespace Slick {
|
||||
public getPagingInfo(): PagingOptions;
|
||||
public getItems(): T[];
|
||||
public setItems(data: T[], objectIdProperty?: string): void;
|
||||
public setFilter(filterFn: (item: T, args:any) => boolean): void; // todo: typeof(args)
|
||||
public setFilter(filterFn: (item: T, args: any) => boolean): void; // todo: typeof(args)
|
||||
public sort(comparer: Function, ascending: boolean): void; // todo: typeof(comparer), should be the same callback as Array.sort
|
||||
public fastSort(field: string, ascending: boolean): void;
|
||||
public fastSort(field: Function, ascending: boolean): void; // todo: typeof(field), should be the same callback as Array.sort
|
||||
@@ -1591,12 +1590,12 @@ declare namespace Slick {
|
||||
/**
|
||||
* @deprecated
|
||||
**/
|
||||
public groupBy(valueGetter:any, valueFormatter:any, sortComparer:any): void;
|
||||
public groupBy(valueGetter: any, valueFormatter: any, sortComparer: any): void;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
**/
|
||||
public setAggregators(groupAggregators:any, includeCollapsed:any): void;
|
||||
public setAggregators(groupAggregators: any, includeCollapsed: any): void;
|
||||
|
||||
/**
|
||||
* @param level Optional level to collapse. If not specified, applies to all levels.
|
||||
|
||||
Reference in New Issue
Block a user