Skip to content

Commit a116991

Browse files
committed
react jsdoc type import (until we migrate to typescript)
1 parent 711e186 commit a116991

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

next.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const nextConfig = (phase) => {
2626
})*/
2727

2828
// https://rehype-pretty-code.netlify.app/
29+
/** @type {import('rehype-pretty-code').Options} */
2930
const rehypePrettyCodeOptions = {
3031
// VSCode "SynthWave '84" theme
3132
theme: 'synthwave-84',
@@ -44,6 +45,7 @@ const nextConfig = (phase) => {
4445
}
4546

4647
// https://github.com/chrisweb/remark-table-of-contents#options
48+
/** @type {import('remark-table-of-contents').IRemarkTableOfContentsOptions} */
4749
const remarkTableOfContentsOptions = {
4850
containerAttributes: {
4951
id: 'articleToc',
@@ -73,11 +75,13 @@ const nextConfig = (phase) => {
7375
}
7476

7577
// https://github.com/remarkjs/remark-gfm
78+
/** @type {import('remark-gfm').Options} */
7679
const remarkGfmOptions = {
7780
singleTilde: false,
7881
}
7982

8083
// https://github.com/chrisweb/rehype-github-alerts
84+
/** @type {import('rehype-github-alerts').DefaultBuildType} */
8185
const myGithubAlertBuild = (alertOptions, originalChildren) => {
8286

8387
const alert = {
@@ -135,6 +139,7 @@ const nextConfig = (phase) => {
135139

136140
}
137141

142+
/** @type {import('rehype-github-alerts').IOptions} */
138143
const rehypeGithubAlertsOptions = {
139144
supportLegacy: false,
140145
build: myGithubAlertBuild,

0 commit comments

Comments
 (0)