3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Add comment clarifying WithRequiredProps

This commit is contained in:
Dragory 2020-11-09 20:43:10 +02:00
parent f3609aa8ab
commit 9480e82056
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

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>;
};