Skip to content

Commit fae325a

Browse files
committed
Update dev-dependencies
1 parent ac78e4f commit fae325a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

complex-types.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import {Literal} from 'mdast'
22
import {Program} from 'estree-jsx'
33

4-
export interface MDXJSEsm extends Literal {
4+
export interface MdxjsEsm extends Literal {
55
type: 'mdxjsEsm'
66
data?: {estree?: Program} & Literal['data']
77
}
88

99
declare module 'mdast' {
1010
interface BlockContentMap {
11-
mdxjsEsm: MDXJSEsm
11+
mdxjsEsm: MdxjsEsm
1212
}
1313
}

index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
* @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension
55
* @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle
66
* @typedef {import('estree-jsx').Program} Program
7-
* @typedef {import('./complex-types').MDXJSEsm} MDXJSEsm
7+
* @typedef {import('./complex-types').MdxjsEsm} MdxjsEsm
8+
*
9+
* @typedef {MdxjsEsm} MDXJSEsm - Deprecated name, prefer `MdxjsEsm`
810
*/
911

1012
/** @type {FromMarkdownExtension} */
@@ -25,7 +27,7 @@ function enterMdxjsEsm(token) {
2527
/** @type {FromMarkdownHandle} */
2628
function exitMdxjsEsm(token) {
2729
const value = this.resume()
28-
const node = /** @type {MDXJSEsm} */ (this.exit(token))
30+
const node = /** @type {MdxjsEsm} */ (this.exit(token))
2931
/** @type {Program|undefined} */
3032
// @ts-expect-error: custom.
3133
const estree = token.estree
@@ -45,7 +47,7 @@ function exitMdxjsEsmData(token) {
4547

4648
/**
4749
* @type {ToMarkdownHandle}
48-
* @param {MDXJSEsm} node
50+
* @param {MdxjsEsm} node
4951
*/
5052
function handleMdxjsEsm(node) {
5153
return node.value || ''

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"type-coverage": "^2.0.0",
5757
"typescript": "^4.0.0",
5858
"unist-util-remove-position": "^4.0.0",
59-
"xo": "^0.44.0"
59+
"xo": "^0.45.0"
6060
},
6161
"scripts": {
6262
"build": "rimraf \"{index,test}.d.ts\" && tsc && type-coverage",

0 commit comments

Comments
 (0)