Skip to content

V9 useSpring set Typescript error symbol iterator #822

@jwmann

Description

@jwmann

I recently upgraded to the latest v9 beta 34

This line is now throwing a Typescript error:

const [{ y : springY }, setSpringY] = useSpring( () => ( { y: 0 } ) );
const setSpringY: any
Type 'AnimatedValue<Pick<object, never>>' must have a '[Symbol.iterator]()' method that returns an iterator.ts(2488)

Everything still works as before though.
Maybe related to #723 ?
#642

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions