Refactor typescript arrow function type
Make arrow function type less verbose and easier to read
Start file
export const playground: ( object?: Partial<PlaygroundSection>, ) => PlaygroundSection = config => baseSection({ type: SectionType.Playground, ...config, });
End file
export const playground = ( config?: Partial<PlaygroundSection>, ): PlaygroundSection => baseSection({ type: SectionType.Playground, ...config, });
View Diff
1,3c1,3 < export const playground: ( < object?: Partial<PlaygroundSection>, < ) => PlaygroundSection = config => --- > export const playground = ( > config?: Partial<PlaygroundSection>, > ): PlaygroundSection =>
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 70 remaining solutions by signing in and submitting your own entry
#71 fff / @fff51460170 - Score: 42 - 02/21/21 @ 07:14
f:a<BS> =<Esc><Down>0wdw<Down><Left>dtPi: <Esc>f=dt=<Up>0w<Left>px:<BS>0wxx:wq<CR>
0 comments