Lazy loads phone input (#1566)

This commit is contained in:
Omar López authored and GitHub committed 2022-01-19 16:24:01 +00:00
1 parent e52e1e3e23
commit 116e6d0938
3 files changed
+11 -3

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
/** Makes selected props from a record non optional */
export type Ensure<T, K extends keyof T> = Omit<T, K> & {
[EK in K]-?: NonNullable<T[EK]>;
};
/** Makes selected props from a record optional */
export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;