Skip to content

Commit 35256be

Browse files
authored
Fix TypeScript type imports
Closes GH-6. Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 7ccdae7 commit 35256be

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
* @typedef {import('mdast-util-from-markdown').OnEnterError} OnEnterError
1111
* @typedef {import('mdast-util-from-markdown').OnExitError} OnExitError
1212
* @typedef {import('estree-jsx').Program} Program
13-
* @typedef {import('./complex-types').MdxJsxAttributeValueExpression} MdxJsxAttributeValueExpression
14-
* @typedef {import('./complex-types').MdxJsxAttribute} MdxJsxAttribute
15-
* @typedef {import('./complex-types').MdxJsxExpressionAttribute} MdxJsxExpressionAttribute
16-
* @typedef {import('./complex-types').MdxJsxFlowElement} MdxJsxFlowElement
17-
* @typedef {import('./complex-types').MdxJsxTextElement} MdxJsxTextElement
13+
* @typedef {import('./complex-types.js').MdxJsxAttributeValueExpression} MdxJsxAttributeValueExpression
14+
* @typedef {import('./complex-types.js').MdxJsxAttribute} MdxJsxAttribute
15+
* @typedef {import('./complex-types.js').MdxJsxExpressionAttribute} MdxJsxExpressionAttribute
16+
* @typedef {import('./complex-types.js').MdxJsxFlowElement} MdxJsxFlowElement
17+
* @typedef {import('./complex-types.js').MdxJsxTextElement} MdxJsxTextElement
1818
* @typedef {{name: string|null, attributes: (MdxJsxAttribute|MdxJsxExpressionAttribute)[], close?: boolean, selfClosing?: boolean, start: Token['start'], end: Token['start']}} Tag
1919
*
2020
* @typedef ToMarkdownOptions

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"target": "ES2020",
55
"lib": ["ES2020"],
66
"module": "ES2020",
7-
"moduleResolution": "node",
7+
"moduleResolution": "node16",
88
"allowJs": true,
99
"checkJs": true,
1010
"declaration": true,

0 commit comments

Comments
 (0)