api: add DOM to the list of libs for resend & fix strict offender type
Parents:
c7215bd2 file(s) changed
- api/src/utils/validators.ts +1 -1
- api/tsconfig.build.json +1 -1
api/src/utils/validators.ts
@@ -59,7 +59,7 @@
59 59 // Validate required fields
60 60
61 61 const validateRequiredFields = (data: Record<string, unknown>, fields: string[]) => {
62 - const missing = [];
62 + const missing: string[] = [];
63 63
64 64 for (const field of fields) {
65 65 if (data[field] === undefined || data[field] === null || data[field] === '') {
api/tsconfig.build.json
@@ -3,7 +3,7 @@ "extends": "./tsconfig.json",
3 3 "compilerOptions": {
4 4 "ignoreDeprecations": "6.0",
5 5 "noImplicitAny": false,
6 - "lib": ["ES2022"]
6 + "lib": ["ES2022", "DOM"]
7 7 },
8 8 "include": ["src/**/*"],
9 9 "exclude": ["node_modules", "dist", "tests"]