Move type "NullAndUndefined" to util types

This commit is contained in:
schroda
2025-08-16 17:10:48 +02:00
parent e1058200c0
commit f13fcc0e8c
7 changed files with 4 additions and 7 deletions

2
src/UtilTypes.d.ts vendored
View File

@@ -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>>;