mirror of
https://github.com/elk-zone/elk
synced 2024-11-23 14:46:08 +09:00
9 lines
215 B
TypeScript
9 lines
215 B
TypeScript
export type Mutable<T> = {
|
|
-readonly[P in keyof T]: T[P]
|
|
}
|
|
|
|
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]>
|
|
}>
|