Answers for "Typing for react-step-progress-bar"

0

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> {}
}
Posted by: Guest on March-27-2021

Code answers related to "Typing for react-step-progress-bar"

Code answers related to "Javascript"

Browse Popular Code Answers by Language