Skip to content

Commit a07ff99

Browse files
committed
feat: refactor MinHeap class and update TypeScript configuration for improved compatibility
1 parent 42cc2ee commit a07ff99

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

data-structures/heap/minHeap.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class MinHeap<T> {
2525
* @param {number} parentIndex The index of the parent node.
2626
* @return {number} The index of the right child.
2727
*/
28-
priva;
2928
private getRightChildIndex(parentIndex: number): number {
3029
return 2 * parentIndex + 2;
3130
}

tsconfig.json

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
{
22
"compilerOptions": {
3-
"module": "commonjs",
4-
"target": "ES2015",
5-
"lib": ["es6", "dom"],
3+
"module": "NodeNext",
4+
"target": "ES2023",
5+
"lib": ["ES2023", "DOM"],
66
"sourceMap": true,
77
"allowJs": true,
8-
"moduleResolution": "node",
8+
"moduleResolution": "NodeNext",
99
"noImplicitReturns": true,
1010
"noImplicitThis": true,
11-
"noImplicitAny": false,
11+
"noImplicitAny": true,
1212
"noUnusedLocals": true,
1313
"noUnusedParameters": true,
1414
"strictNullChecks": true,
15+
"strict": true,
16+
"esModuleInterop": true,
17+
"skipLibCheck": true,
18+
"forceConsistentCasingInFileNames": true,
1519
"baseUrl": ".",
1620
"paths": {
1721
"~": ["/"]
@@ -26,6 +30,7 @@
2630
"node_modules"
2731
],
2832
"types": [
33+
"node",
2934
"typePatches"
3035
]
3136
}

0 commit comments

Comments
 (0)