Skip to content

Commit 40299fa

Browse files
committed
Add strict to tsconfig.json
1 parent 5da1d10 commit 40299fa

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const max = 6
1616
* @returns {T}
1717
*/
1818
export function normalizeHeadings(tree) {
19-
/** @type {boolean} */
19+
/** @type {boolean|undefined} */
2020
let multiple
21-
/** @type {Heading} */
21+
/** @type {Heading|undefined} */
2222
let first
23-
/** @type {Heading} */
23+
/** @type {Heading|undefined} */
2424
let title
2525

2626
visit(

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"declaration": true,
1111
"emitDeclarationOnly": true,
1212
"allowSyntheticDefaultImports": true,
13-
"skipLibCheck": true
13+
"skipLibCheck": true,
14+
"strict": true
1415
}
1516
}

0 commit comments

Comments
 (0)