We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e3b11a commit 6bc59f1Copy full SHA for 6bc59f1
src/index.ts
@@ -57,7 +57,7 @@ function stripEmptyObjects(obj: any) {
57
return cleanObj.filter(el => el !== undefined);
58
}
59
60
-export default function removeUndefinedObjects<T>(obj?: T): T {
+export default function removeUndefinedObjects<T>(obj?: T): T | undefined {
61
if (obj === undefined) {
62
return undefined;
63
tsconfig.json
@@ -8,6 +8,7 @@
8
"noImplicitAny": true,
9
"outDir": "./dist",
10
"skipLibCheck": true,
11
+ "strict": true,
12
"target": "ES2020"
13
},
14
"include": ["./src/**/*"]
0 commit comments