diff --git a/node_modules/typeorm/common/PickKeysByType.d.ts b/node_modules/typeorm/common/PickKeysByType.d.ts
index 55ad347..1a8a184 100644
--- a/common/PickKeysByType.d.ts
+++ b/common/PickKeysByType.d.ts
@@ -1,6 +1,6 @@
 /**
  * Pick only the keys that match the Type `U`
  */
-export type PickKeysByType<T, U> = string & keyof {
-    [P in keyof T as T[P] extends U ? P : never]: T[P];
-};
+export type PickKeysByType<T, U> = string & {
+    [P in keyof T]: Exclude<T[P], null> extends U ? P : never;
+}[keyof T];
