Several type fixes (#855)

* 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]>
This commit is contained in:
authored and GitHub committed 2021-10-05 16:46:48 -06:00
1 parent 4474e9dd74
commit 95b49a5995
6 files changed
+37 -24

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
export type RequiredNotNull<T> = {
[P in keyof T]: NonNullable<T[P]>;
};
export type Ensure<T, K extends keyof T> = T & RequiredNotNull<Pick<T, K>>;