react-countup icon indicating copy to clipboard operation
react-countup copied to clipboard

missing types

Open fantian007 opened this issue 3 years ago • 1 comments

image

无类型定义,but works

fantian007 avatar Aug 26 '22 04:08 fantian007

I cannot reproduce it, could you please provide some extra details?

mmarkelov avatar Aug 27 '22 19:08 mmarkelov

Facing a similar issue with missing prop types like startOnMount

<CountUp
  start={0}
  end={10}
  startOnMount={false}
/>
TS2322: Type '{ start: number; end: number; startOnMount: boolean; }' is not assignable to type 'IntrinsicAttributes & CountUpProps'.
Property 'startOnMount' does not exist on type 'IntrinsicAttributes & CountUpProps'.

hrougier avatar Oct 16 '22 00:10 hrougier

Facing a similar issue with missing prop types like startOnMount

<CountUp
  start={0}
  end={10}
  startOnMount={false}
/>
TS2322: Type '{ start: number; end: number; startOnMount: boolean; }' is not assignable to type 'IntrinsicAttributes & CountUpProps'.
Property 'startOnMount' does not exist on type 'IntrinsicAttributes & CountUpProps'.

startOnMount prop is used only for counter created with hook

mmarkelov avatar Oct 16 '22 15:10 mmarkelov