NK
Size: a a a
NK
NK
NK
NK
NK
NK
NK
const getCicularStyle = (props: IProgressProps) => {NK
ERROR in ./src/app/components/ui/progress/index.tsx^ вот такая ошибка
(48,25): error TS2354: No best common type exists among return expressions.
NK
NK
const { calculateRatio, mode, buffer, value } = props;
if (mode !== ProgressModes.Indeterminate) return {}; // <<-
export interface IProgressProps {
// …
mode?: ProgressModes; // <<-
// …
}
export enum ProgressModes {
Determinate,
Indeterminate,
}
NK
NK
AK
AK
NK
NK
NK
linear: (props: IProgressProps): Object => { вот так он понялNK
AK