Skip to content

Instantly share code, notes, and snippets.

@tibuurcio
Created April 10, 2022 15:55
Show Gist options
  • Select an option

  • Save tibuurcio/d76bf78679c91d74900dfa2dcac21298 to your computer and use it in GitHub Desktop.

Select an option

Save tibuurcio/d76bf78679c91d74900dfa2dcac21298 to your computer and use it in GitHub Desktop.
// https://github.com/type-challenges/type-challenges/blob/master/questions/13-warm-hello-world/README.md
type HelloWorld = string
// ---------
// https://github.com/type-challenges/type-challenges/blob/master/questions/4-easy-pick/README.md
type MyPick<T, K extends keyof T> = {
[key in K]: T[key]
}
// ----------
// https://github.com/type-challenges/type-challenges/blob/master/questions/7-easy-readonly/README.md
type MyReadonly<T> = {
readonly [K in keyof T]: T[K]
}
// ----------
// https://github.com/type-challenges/type-challenges/blob/master/questions/11-easy-tuple-to-object/README.md
// TODO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment