Skip to content

Commit b5dfc57

Browse files
committed
Remove unneeded ts-expect-error
1 parent a395cbd commit b5dfc57

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/index.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/**
2-
* @typedef {import('estree-jsx').Program} Program
3-
*
42
* @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext
53
* @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension
64
* @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle
@@ -284,8 +282,6 @@ export function mdxJsxFromMarkdown() {
284282
const tail = /** @type {MdxJsxExpressionAttribute} */ (
285283
tag.attributes[tag.attributes.length - 1]
286284
)
287-
/** @type {Program | undefined} */
288-
// @ts-expect-error: custom.
289285
const estree = token.estree
290286

291287
tail.value = this.resume()
@@ -342,8 +338,6 @@ export function mdxJsxFromMarkdown() {
342338
)
343339
/** @type {MdxJsxAttributeValueExpression} */
344340
const node = {type: 'mdxJsxAttributeValueExpression', value: this.resume()}
345-
/** @type {Program | undefined} */
346-
// @ts-expect-error: custom.
347341
const estree = token.estree
348342

349343
if (estree) {

0 commit comments

Comments
 (0)