wp-calypso
wp-calypso copied to clipboard
refactor: create TS version of convertToCamelCase
Proposed Changes
We have convertToCamelCase function which is written with the help of JS
.
This PR adds TS version of this function.
Why are these changes being made?
The main issue - we lose TS-types if we use this function inside ts / tsx
modules.
Testing Instructions (let's test existing case, where we integrated this function)
-
Create Simple website
-
Open settings -> Writing
-
Assert that you see "Post my Voice" and "Press this" in the "Publishign tools" section
-
Turn on "Post by Voice"
-
Assert that the code is generated, success notice "Changes saved successfully!" appeared and you see the next UI
-
Click on "Regenerate code" and assert that it's regenerrated and success notice "Code regenerated successfully!" appeared
-
Turn off "Post by voice" and assert that UI works and looks good