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

useSprings missing from web.d.ts v8.0.1

Open gscottolson opened this issue 7 years ago • 3 comments

Importing useSprings from react-spring@8.0.1 throws a TypeScript error. In VS Code:

“react-spring has no exported member 'useSprings'. Did you mean 'useSpring'? ts(2724)”

gscottolson avatar Feb 06 '19 22:02 gscottolson

it's not been added to types yet. types are missing proper definition for useTransition(items, keys, config) and useSprings. But i don't understand types, would you want to add it?

drcmda avatar Feb 06 '19 23:02 drcmda

I have not authored types myself. I was hoping whoever did them initially could knock them out.

gscottolson avatar Feb 07 '19 00:02 gscottolson

PR is open for what I think the useSprings typings might be.

gscottolson avatar Feb 07 '19 18:02 gscottolson