mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
chore(frontend): comprehensive TypeScript quality improvements (#37625)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user