Move type "NullAndUndefined" to util types
This commit is contained in:
2
src/UtilTypes.d.ts
vendored
2
src/UtilTypes.d.ts
vendored
@@ -20,6 +20,8 @@ type RecursivePartial<T> = {
|
||||
: T[P];
|
||||
};
|
||||
|
||||
type NullAndUndefined<T> = T | null | undefined;
|
||||
|
||||
type NonNullableProperties<T> = { [P in keyof T]-?: NonNullable<T[P]> };
|
||||
|
||||
type OptionalProperty<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
||||
|
||||
Reference in New Issue
Block a user