Strict null check on full "base" code (#4973)

* removes more builder references

* remove builder from profiler

* formatting

* fix profiler dailog

* remove builder from oatuhdialog

* remove the rest of builder references

* formatting

* add more strict null checks to base
This commit is contained in:
Anthony Dresser
2019-04-12 12:59:58 -07:00
committed by GitHub
parent cb1682542b
commit 92b1c59e48
14 changed files with 157 additions and 180 deletions

View File

@@ -69,8 +69,8 @@ declare namespace Slick {
* @method unsubscribe
* @param fn {Function} Event handler to be removed.
*/
public unsubscribe(fn: (e: EventData, data: T) => any): void;
public unsubscribe(fn: (e: DOMEvent, data: T) => any): void;
public unsubscribe(fn?: (e: EventData, data: T) => any): void;
public unsubscribe(fn?: (e: DOMEvent, data: T) => any): void;
/***
* Fires an event notifying all subscribers.
@@ -716,7 +716,7 @@ declare namespace Slick {
* Metadata indexed by column index
*/
[index: number]: ColumnMetadata<T>;
}
};
}
export interface ColumnMetadata<T extends SlickData> {
@@ -1231,10 +1231,10 @@ declare namespace Slick {
public getRenderedRange(viewportTop?: number, viewportLeft?: number): Viewport;
public resizeCanvas(): void;
public updateRowCount(): void;
public scrollRowIntoView(row: number, doPaging: boolean): void;
public scrollRowIntoView(row: number, doPaging?: boolean): void;
public scrollRowToTop(row: number): void;
public scrollCellIntoView(row: number, cell: number, doPaging: boolean): void;
public scrollTo(y: number);
public scrollTo(y: number): void;
public getCanvasNode(): HTMLCanvasElement;
public focus(): void;
@@ -1278,7 +1278,7 @@ declare namespace Slick {
// the documentation is not enlightening
startX: number;
startY: number;
range: { start: Slick.Cell, end: Slick.Cell };
range: { start: Slick.Cell, end?: Slick.Cell };
}
export interface OnDragInitEventArgs<T extends SlickData> extends GridEventArgs<T> {
@@ -1448,7 +1448,7 @@ declare namespace Slick {
export interface CellCssStylesHash {
[index: number]: {
[id: string]: string;
}
};
}
export interface Viewport {

View File

@@ -1084,7 +1084,7 @@ interface UnderscoreStatic {
* @param array The array to split
* @param count The maximum size of the inner arrays.
*/
chunk<T>(array: _.Collection<T>, count: number): (_.Collection<T>)[]
chunk<T>(array: _.Collection<T>, count: number): (_.Collection<T>)[];
/*************
* Functions *
@@ -3668,7 +3668,7 @@ interface UnderscoreStatic {
* @param context `this` object in `iterator`, optional.
*/
findKey<T>(obj: _.Dictionary<T>, predicate: _.ObjectIterator<T, boolean>, context? : any): string;
/**
* Return a copy of the object, filtered to only have values for the whitelisted keys
* (or array of valid keys).
@@ -4748,7 +4748,7 @@ interface Underscore<T> {
* Wrapped type `object`.
* @see _.extend
**/
findKey(predicate: _.ObjectIterator<any, boolean>, context? : any): any
findKey(predicate: _.ObjectIterator<any, boolean>, context? : any): any;
/**
* Wrapped type `object`.
@@ -5708,7 +5708,7 @@ interface _Chain<T> {
* Wrapped type `object`.
* @see _.extend
**/
findKey(predicate: _.ObjectIterator<any, boolean>, context? : any): _Chain<T>
findKey(predicate: _.ObjectIterator<any, boolean>, context? : any): _Chain<T>;
/**
* Wrapped type `object`.