Open TIS-OMiddle opened 1 year ago
input: useCallback(event => {})
useCallback(event => {})
current output: useCallback(event: any => {})
useCallback(event: any => {})
expect output: useCallback((event: any) => {})
useCallback((event: any) => {})
It should add a brackets in this condition
This codemod relies on jscodeshift and Babel for code generation. Though it's not clear if it's a configuration mistake on our side or a bug in 3rd party dependencies. But definitely worth checking out.
input:
useCallback(event => {})
current output:
useCallback(event: any => {})
expect output:
useCallback((event: any) => {})
It should add a brackets in this condition