Skip to content

Commit 684016f

Browse files
committed
Adds new Mutable type
1 parent 07b1a46 commit 684016f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/@types/global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export declare global {
66
export type PickPartialDeep<T, K extends keyof T> = Omit<Partial<T>, K> & { [P in K]?: Partial<T[P]> };
77

88
export type Mutable<T> = { -readonly [P in keyof T]: T[P] };
9+
export type MutableDeep<T> = { -readonly [P in keyof T]: MutableDeep<T[P]> };
910
export type PickMutable<T, K extends keyof T> = Omit<T, K> & { -readonly [P in K]: T[P] };
1011

1112
export type EntriesType<T> = T extends Record<infer K, infer V> ? [K, V] : never;

0 commit comments

Comments
 (0)