Add string initializers to an enum
Change Typescript enum so that it has string initializers.
Start file
const enum TestkitType { vanilla, unidriver, protractor, puppeteer, unknown, }
End file
const enum TestkitType { vanilla = 'VANILLA', unidriver = 'UNIDRIVER', protractor = 'PROTRACTOR', puppeteer = 'PUPPETEER', unknown = 'UNKNOWN', }
View Diff
2,6c2,6 < vanilla, < unidriver, < protractor, < puppeteer, < unknown, --- > vanilla = 'VANILLA', > unidriver = 'UNIDRIVER', > protractor = 'PROTRACTOR', > puppeteer = 'PUPPETEER', > unknown = 'UNKNOWN',
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 257 remaining solutions by signing in and submitting your own entry
#258 Golfer / @golfplayervim - Score: 206 - 04/26/23 @ 16:46
<CR>yeep<C-Z>zzzzzxxxxxxxx<Right>x<Right>lla,<Esc>lkjjlllljjhh22222222<CR>5-yUspppp<Esc>ppppp<BS><BS><BS><BS><BS><BS>uuuuuuua,<Esc><Left><Left><Left><Left><Left><Left><Left>u,a,<Esc>bywea = ''<Esc>jkh<0xc3><0xa5>p<C-V>bU3<CR>2-yeea 0<BS>= ''<Esc>jkhpUPuU<Right><Right><Left><C-V>bU<CR>yeea = <0xc3><0xa4><BS>''<Esc>hp<C-V>bU<CR>yee = ea = ''h<BS><Esc>hp<C-V>bU<CR>yeea = **<BS><BS>''<Esc>hp<C-V>bU:wq<CR>
0 comments