* Several type fixes * Update ee/lib/stripe/client.ts Co-authored-by: Alex Johansson <[email protected]> * Typo * Refactors createPaymentLink * Simplify calendarClietn type Co-authored-by: Alex Johansson <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
6 lines
152 B
TypeScript
6 lines
152 B
TypeScript
export type RequiredNotNull<T> = {
|
|
[P in keyof T]: NonNullable<T[P]>;
|
|
};
|
|
|
|
export type Ensure<T, K extends keyof T> = T & RequiredNotNull<Pick<T, K>>;
|