2022-11-24 18:15:58 +09:00
|
|
|
export type Mutable<T> = {
|
|
|
|
-readonly[P in keyof T]: T[P]
|
|
|
|
}
|
2023-01-04 19:21:18 +09: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]>
|
|
|
|
}>
|