Skip to content

Instantly share code, notes, and snippets.

@guilhermepontes
Created January 14, 2020 10:20
Show Gist options
  • Select an option

  • Save guilhermepontes/6951472742788f5f7ae8a447cf3aec8d to your computer and use it in GitHub Desktop.

Select an option

Save guilhermepontes/6951472742788f5f7ae8a447cf3aec8d to your computer and use it in GitHub Desktop.

Revisions

  1. guilhermepontes created this gist Jan 14, 2020.
    3 changes: 3 additions & 0 deletions type.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    type Immutable<T> = {
    readonly [K in keyof T]: Immutable<T[K]>;
    };