mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 14:11:50 +00:00
Add comment clarifying WithRequiredProps
This commit is contained in:
parent
f3609aa8ab
commit
9480e82056
1 changed files with 1 additions and 0 deletions
|
@ -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>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue