If the case is ambiguous, it should be possible to indicate a default case. In the following example, Button, a single word, does not provide much information about its casing. text-case infers a type, looks like Title Case, but ideally it should've used PascalCase. This is information is not available from the single word Button
One of the sources of the original casing could be the destination case. In the example of the issue description, it is providing Title Case, but the user could have also provided PascalCase
If the case is ambiguous, it should be possible to indicate a default case. In the following example,
Button
, a single word, does not provide much information about its casing.text-case
infers a type, looks likeTitle Case
, but ideally it should've usedPascalCase
. This is information is not available from the single wordButton