-
```ts
// your answers
type CamelCase = S extends `${infer F}-${infer R}` ? Capitalize extends R ? `${F}-${CamelCase}` : `${F}${CamelCase}` : S;
```
-
```ts
type CamelCase
= S extends `${infer First}-${infer Second}${infer Rest}`
? S extends `${infer First}--${infer Second}${infer Rest}`
? `${First}-${Capitalize}${CamelCas…
-
use typetype:
* repo https://github.com/mistlog/typetype
* solution: https://github.com/mistlog/typetype-examples/blob/main/examples/type-challenges/114-hard-camelcase.type
```ts
export type…
-
```ts
// your answers
type CamelCase =
S extends Lowercase
? S extends `${infer L}-${infer R}`
? `${L}${
Capitalize extends R ? `-${CamelCase}`
: Capitalize ex…
-
Just wanted to check if adding camelCase aliases for parameters would be an option.
This would bring the plugin more inline with JS conventions, and avoid this TypeScript warning:
![image](https…
dandv updated
4 years ago
-
I was about to start writing my own visual UI for my game's FSM when I noticed this addon had been radically changed and now looks more or less like what I was going to do, so it's saved me quite a bi…
-
If you define multiple services of the same type in your Docker Compose yaml, you'll get multiple connection details beans of the same type in the context. Those beans are hard to inject as you can't …
-
I have the mapping:
``` vim
map w CamelCaseMotion_w
```
When I do `2cw` or `2dw`, it deletes two words the first time, but then when I repeat the action using `.`, it only deletes one word.
This m…
dlee updated
10 years ago
-
Als ik het goed heb worden voor de xsd's objecttype en attribuutsoortnamen met een spatie vertaald naar CamelCase namen. Dus "periode geldigheid" wordt dan "periodeGeldigheid". In de MIM-xml wordt nu …
-
Is it possible to generate camelCase keys in interfaces ?