You can alter type keys with expressions:
export type PrefixKeyWithColon<Type> = {
[Prop in keyof Type & string as `:${Prop}`]: Type[Prop]
}
| /*** | |
| *** Modified by Ryan McQuen - February, 2024 and July, 2024 | |
| ***/ | |
| /* Light Theme for YouTube Music */ | |
| /* By Tech How */ | |
| /* Visit this project on GitHub and be the first to know about bug fixes and improvements! */ | |
| /* https://github.com/Tech-How/Light-Theme-for-YouTube-Music */ | |
| /* Color Scheme */ |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <presets> | |
| <preset company="audient ltd" product="evo 8" schema-version="0.1.0" | |
| software-version="4.2.3"> | |
| <device> | |
| <mixer artistMixEnabled="0"> | |
| <input channel="0" mode="0" name="MIC 1" cut="0"> | |
| <mix index="0" volume="-128.00" pan="0.50"/> | |
| <mix index="1" volume="-128.00" pan="0.50"/> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>repl.it</title> | |
| <link href="style.css" rel="stylesheet" type="text/css" /> | |
| </head> | |
| <body> | |
| <script src="script.js"></script> |
| {"baseFontSize":16,"pluginEnabledStatus":{"file-explorer":true,"global-search":true,"switcher":true,"graph":true,"backlink":true,"page-preview":true,"command-palette":true,"markdown-importer":true,"word-count":true,"open-with-default-app":true,"file-recovery":true},"theme":"moonstone","foldHeading":true,"foldIndent":true,"useTab":false,"enabledPlugins":["obsidian-focus-mode","obsidian-org-mode"]} |
| { | |
| "all": | |
| { | |
| "end_with_newline": true, | |
| "eol": "\n", | |
| "indent_size": 2, | |
| "indent_with_tabs": false | |
| }, | |
| "js": | |
| { |
| Homebrew build logs for emscripten on macOS 10.15.7 | |
| Build date: 2020-10-16 16:33:47 |
| ------------------------------------------------------------------- | |
| -- Globals | |
| ------------------------------------------------------------------- | |
| -- This controls all window animations. | |
| hs.window.animationDuration = 0 | |
| ------------------------------------------------------------------- | |
| -- Window Layouts | |
| ------------------------------------------------------------------- |
| // iterators2.rs | |
| // In this module, you'll learn some of unique advantages that iterators can offer. | |
| // Step 1. Complete the `capitalize_first` function to pass the first two cases. | |
| // Step 2. Apply the `capitalize_first` function to a vector of strings. | |
| // Ensure that it returns a vector of strings as well. | |
| // Step 3. Apply the `capitalize_first` function again to a list. | |
| // Try to ensure it returns a single string. | |
| // As always, there are hints if you execute `rustlings hint iterators2`! | |
| // I AM NOT DONE |
| let mut a = [0; 900]; | |
| for (index, element) in a.iter_mut().enumerate() { | |
| *element = index; | |
| } | |
| println!("{} {} {}", a[23], a[700], a[1]); |