mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-07 08:12:19 +02:00
6 lines
137 B
TypeScript
6 lines
137 B
TypeScript
type RequiredNotNull<T> = {
|
|
[P in keyof T]: NonNullable<T[P]>;
|
|
};
|
|
|
|
type Ensure<T, K extends keyof T> = T & RequiredNotNull<Pick<T, K>>;
|