chore(many): replace any types and add tech debt tickets (#26293)

Co-authored-by: Liam DeBeasi <liamdebeasi@users.noreply.github.com>
This commit is contained in:
Amanda Johnston
2023-01-06 09:34:55 -06:00
committed by GitHub
parent 27527025e4
commit c2e1ad385d
122 changed files with 229 additions and 65 deletions

View File

@ -28,8 +28,8 @@ export class PickerColumnCmp implements ComponentInterface {
private y = 0;
private optsEl?: HTMLElement;
private gesture?: Gesture;
private rafId: any;
private tmrId: any;
private rafId?: ReturnType<typeof requestAnimationFrame>;
private tmrId?: ReturnType<typeof setTimeout>;
private noAnimate = true;
@Element() el!: HTMLElement;
@ -90,8 +90,8 @@ export class PickerColumnCmp implements ComponentInterface {
}
disconnectedCallback() {
cancelAnimationFrame(this.rafId);
clearTimeout(this.tmrId);
if (this.rafId !== undefined) cancelAnimationFrame(this.rafId);
if (this.tmrId) clearTimeout(this.tmrId);
if (this.gesture) {
this.gesture.destroy();
this.gesture = undefined;
@ -110,7 +110,7 @@ export class PickerColumnCmp implements ComponentInterface {
this.velocity = 0;
// set what y position we're at
cancelAnimationFrame(this.rafId);
if (this.rafId !== undefined) cancelAnimationFrame(this.rafId);
this.update(y, duration, true);
this.emitColChange();
@ -251,7 +251,7 @@ export class PickerColumnCmp implements ComponentInterface {
hapticSelectionStart();
// reset everything
cancelAnimationFrame(this.rafId);
if (this.rafId !== undefined) cancelAnimationFrame(this.rafId);
const options = this.col.options;
let minY = options.length - 1;
let maxY = 0;