Typing for react-step-progress-bar
/* I solve this issue declaring my own .d.ts file, I am using create-react-app, this search for the file src/global.d.ts
This is how it look to me, any suggestion is welcome: */
declare module 'react-step-progress-bar' {
interface ProgressBarProps {
percent?: number;
filledBackground?: any;
height?: string | number;
stepPositions?: number;
}
interface StepProps {
transition?: any;
position?: any;
}
class ProgressBar extends React.Component<ProgressBarProps, any> {}
class Step extends React.Component<StepProps, any> {}
}