You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To declare a type for the `props` object, use the JSDoc `@typedef` tag:
212
-
213
-
```mdx
214
-
{/**
215
-
* @typedefProps
216
-
* @property{string}name
217
-
* Who to greet. */}
218
-
219
-
# Hello {props.name}
220
-
```
221
-
222
-
This will be used by [the MDX VS Code extension][mdx-vscode-extension] to show
223
-
JSDoc information and errors in IntelliSense hovers (see the
224
-
[MDX Analyzer Props docs][mdx-analyzer-props-docs] for more details):
225
-
226
-

227
-
228
-

229
-
230
-

209
+
<Note type="info">
210
+
**Note**:
211
+
Users of [the MDX VS Code extension][mdx-vscode-extension] can add type
212
+
checking of `props` with a JSDoc comment.
213
+
See [`mdx-js/mdx-analyzer`][mdx-analyzer] for more info.
214
+
</Note>
231
215
232
216
### Components
233
217
@@ -348,6 +332,13 @@ as follows:
348
332
* Otherwise, if it starts with a lowercase, it’s a literal (`<a>` -> `h('a')`)
349
333
* Otherwise, it’s an identifier (`<A>` -> `h(A)`), which means a component `A`
350
334
335
+
<Note type="info">
336
+
**Note**:
337
+
Users of [the MDX VS Code extension][mdx-vscode-extension] can add type
338
+
checking of provided and passed components with a JSDoc comment.
339
+
See [`mdx-js/mdx-analyzer`][mdx-analyzer] for more info.
0 commit comments