Skip to content

Commit b810c5e

Browse files
devmuffySebastian Fituch
authored and
Sebastian Fituch
committed
chore: add tsconfig.json, fix typing issue
1 parent c36df0c commit b810c5e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/pesel/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function isValidPesel(pesel: string): boolean {
2323
return (modulo === 0 && checkDigit === 0) || 10 - modulo === checkDigit;
2424
}
2525

26-
const MODULO_REMAINDER_TO_CENTURY = {
26+
const MODULO_REMAINDER_TO_CENTURY: Record<number, number> = {
2727
0: 1900,
2828
20: 2000,
2929
40: 2100,

tsconfig.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"target": "ESNext",
4+
"module": "ESNext",
5+
"esModuleInterop": true,
6+
"forceConsistentCasingInFileNames": true,
7+
"strict": true,
8+
"skipLibCheck": true
9+
}
10+
}

0 commit comments

Comments
 (0)