Skip to content

useCallback: transform incorrect when using arrow function with single params #176

@TIS-OMiddle

Description

@TIS-OMiddle

input: useCallback(event => {})

current output: useCallback(event: any => {})

expect output: useCallback((event: any) => {})

It should add a brackets in this condition

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions