Skip to content

Commit

Permalink
feat: implement Writeable types
Browse files Browse the repository at this point in the history
  • Loading branch information
Yehonal committed Sep 11, 2024
1 parent c081ead commit b72ca48
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/src/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,8 @@ type HTTPMethods =
| 'put'
| 'OPTIONS'
| 'options';

type Writeable<T> = { -readonly [P in keyof T]: T[P] };
type DeepWritable<T> = {
-readonly [P in keyof T]: DeepWritable<T[P]>;
};

0 comments on commit b72ca48

Please sign in to comment.