Skip to content

Commit e26167d

Browse files
committed
Add strict to tsconfig.json
1 parent aad51cb commit e26167d

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

index.js

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,19 @@
55

66
import {convert} from 'unist-util-is'
77

8-
/**
9-
* @type {AssertPredicatePhrasing}
10-
*/
11-
// @ts-ignore hush, it’s fine!
12-
export const phrasing = convert([
13-
'break',
14-
'delete',
15-
'emphasis',
16-
'footnote',
17-
'footnoteReference',
18-
'image',
19-
'imageReference',
20-
'inlineCode',
21-
'link',
22-
'linkReference',
23-
'strong',
24-
'text'
25-
])
8+
export const phrasing = /** @type {AssertPredicatePhrasing} */ (
9+
convert([
10+
'break',
11+
'delete',
12+
'emphasis',
13+
'footnote',
14+
'footnoteReference',
15+
'image',
16+
'imageReference',
17+
'inlineCode',
18+
'link',
19+
'linkReference',
20+
'strong',
21+
'text'
22+
])
23+
)

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)