Skip to content

Commit 6bc59f1

Browse files
authored
feat: enable TS strict mode (#87)
1 parent 1e3b11a commit 6bc59f1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function stripEmptyObjects(obj: any) {
5757
return cleanObj.filter(el => el !== undefined);
5858
}
5959

60-
export default function removeUndefinedObjects<T>(obj?: T): T {
60+
export default function removeUndefinedObjects<T>(obj?: T): T | undefined {
6161
if (obj === undefined) {
6262
return undefined;
6363
}

tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"noImplicitAny": true,
99
"outDir": "./dist",
1010
"skipLibCheck": true,
11+
"strict": true,
1112
"target": "ES2020"
1213
},
1314
"include": ["./src/**/*"]

0 commit comments

Comments
 (0)