3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 00:35:02 +00:00

Add comment clarifying WithRequiredProps

This commit is contained in:
Dragory 2020-11-09 20:43:10 +02:00
parent 08ec91be28
commit 409fc68fc7

View file

@ -3,5 +3,6 @@ export type Tail<T extends any[]> = ((...t: T) => void) extends (h: any, ...r: i
export declare type WithRequiredProps<T, K extends keyof T> = T & export declare type WithRequiredProps<T, K extends keyof T> = T &
{ {
// https://mariusschulz.com/blog/mapped-type-modifiers-in-typescript#removing-the-mapped-type-modifier
[PK in K]-?: Exclude<T[K], null>; [PK in K]-?: Exclude<T[K], null>;
}; };