Skip to content

Instantly share code, notes, and snippets.

@basarat
Created November 11, 2021 04:46
Show Gist options
  • Save basarat/1c2923f91643a16a90de638e76bce0ab to your computer and use it in GitHub Desktop.
Save basarat/1c2923f91643a16a90de638e76bce0ab to your computer and use it in GitHub Desktop.
type DeepReadonly<T> = {
readonly [P in keyof T]
: DeepReadonly<T[P]>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment