3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +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 &
{
// https://mariusschulz.com/blog/mapped-type-modifiers-in-typescript#removing-the-mapped-type-modifier
[PK in K]-?: Exclude<T[K], null>;
};