showing results for - "typing for react step progress bar"
Nathanael
19 May 2020
1/* 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
2This is how it look to me, any suggestion is welcome: */
3
4
5declare module 'react-step-progress-bar' {
6  interface ProgressBarProps {
7    percent?: number;
8    filledBackground?: any;
9    height?: string | number;
10    stepPositions?: number;
11  }
12
13  interface StepProps {
14    transition?: any;
15    position?: any;
16  }
17  class ProgressBar extends React.Component<ProgressBarProps, any> {}
18  class Step extends React.Component<StepProps, any> {}
19}