chore(frontend): comprehensive TypeScript quality improvements (#37625)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-02-06 16:16:57 -05:00
committed by GitHub
parent e9ae212c1c
commit fc5506e466
441 changed files with 14136 additions and 9956 deletions

View File

@@ -195,7 +195,7 @@ export const ZoomConfigControl: FC<ZoomConfigsControlProps> = ({
description={baseWidthDescription}
value={baseWidth}
name="baseWidth"
// @ts-ignore
// @ts-expect-error - Slider onAfterChange type mismatch
onAfterChange={onBaseWidthChange}
step={1}
min={0}
@@ -207,7 +207,7 @@ export const ZoomConfigControl: FC<ZoomConfigsControlProps> = ({
description={baseHeightDescription}
value={baseHeight}
name="baseHeight"
// @ts-ignore
// @ts-expect-error - Slider onAfterChange type mismatch
onAfterChange={onBaseHeightChange}
step={1}
min={0}
@@ -219,7 +219,7 @@ export const ZoomConfigControl: FC<ZoomConfigsControlProps> = ({
description={baseSlopeDescription}
value={baseSlope}
name="slope"
// @ts-ignore
// @ts-expect-error - Slider onAfterChange type mismatch
onAfterChange={onBaseSlopeChange}
disabled={!!(value && !isZoomConfigsLinear(value))}
step={1}
@@ -232,7 +232,7 @@ export const ZoomConfigControl: FC<ZoomConfigsControlProps> = ({
description={baseExponentDescription}
value={baseExponent}
name="exponent"
// @ts-ignore
// @ts-expect-error - Slider onAfterChange type mismatch
onAfterChange={onBaseExponentChange}
disabled={!!(value && !isZoomConfigsExp(value))}
step={0.2}

View File

@@ -185,7 +185,7 @@ describe('zoomUtil', () => {
zoom: 5,
exponent: 1.5,
};
// @ts-ignore
// @ts-expect-error - testing with partial config object
const result = toExpConfig(configs);
test('has correct type', () => {
expect(result.type).toEqual('EXP');