fix some anys (#53789)

This commit is contained in:
Ashley Harrison
2022-08-19 16:46:58 +01:00
committed by GitHub
parent 7cbf6015db
commit 0b322a0f5d
23 changed files with 59 additions and 112 deletions
@@ -13,7 +13,7 @@ interface CircularOptions {
*/
export class CircularDataFrame<T = any> extends MutableDataFrame<T> {
constructor(options: CircularOptions) {
super(undefined, (buffer?: any[]) => {
super(undefined, (buffer) => {
return new CircularVector({
...options,
buffer,
@@ -92,7 +92,7 @@ export function compareArrayValues<T>(a: T[], b: T[], cmp: (a: T, b: T) => boole
return true;
}
type Cmp = (valA: any, valB: any) => boolean;
type Cmp = (valA: unknown, valB: unknown) => boolean;
const defaultCmp: Cmp = (a, b) => a === b;