thekevinscott / UpscalerJS

Found unused variables in TypeScript code JS-0356
Performance
Minor
6 months ago3 years old
'translate' is defined but never used
 9  class?: string;
10  onClick?: () => void;
11}
12export const Button = ({ onClick, draggable, translate, ...props }: IProps) => {13  const ref = useShoelaceEventListener<HTMLButtonElement>(onClick, 'click', 'touch');
14  return (
15    <sl-button
'draggable' is defined but never used
 9  class?: string;
10  onClick?: () => void;
11}
12export const Button = ({ onClick, draggable, translate, ...props }: IProps) => {13  const ref = useShoelaceEventListener<HTMLButtonElement>(onClick, 'click', 'touch');
14  return (
15    <sl-button
'DOMAttributes' is defined but never used
 1import React, { DOMAttributes } from 'react'; 2import './skeleton.module.scss';
 3import type { SlSkeleton } from '@shoelace-style/shoelace';
 4import { CustomElement } from '@site/src/utils/customElement';
'DOMAttributes' is defined but never used
 1import React, { DOMAttributes } from 'react'; 2// import './menu-item.module.scss';
 3import type { SlMenuItem } from '@shoelace-style/shoelace';
 4import { CustomElement } from '@site/src/utils/customElement';
'removeAlpha' is defined but never used
 2import type { ProcessedImage, Size, UploadedImage, UpscaleChoice } from '../types';
 3import { getHTMLImageElement } from '../utils/getHTMLImageElement';
 4import { getRecommendedImageSize } from '../utils/getRecommendedImageSize';
 5import { removeAlpha } from '../utils/removeAlpha'; 6import { resizeImage } from '../utils/resizeImage';
 7import { useAppropriateImage } from './useAppropriateImage';
 8import { useUpscaler } from './useUpscaler';