1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-14 04:49:59 +00:00
elk/types/utils.ts

9 lines
215 B
TypeScript
Raw Normal View History

2022-11-24 09:15:58 +00:00
export type Mutable<T> = {
-readonly[P in keyof T]: T[P]
}
2023-01-04 10:21:18 +00:00
export type Overwrite<T, O> = Omit<T, keyof O> & O
export type MarkNonNullable<T, K extends keyof T> = Overwrite<T, {
[P in K]-?: NonNullable<T[P]>
}>