Skip to content

Commit bbb5ebe

Browse files
authored
Fix type imports for Node16 module resolution
Closes GH-3. Reviewed-by: JounQin <admin@1stg.me> Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com> Reviewed-by: Titus Wormer <tituswormer@gmail.com>
1 parent 0693e9f commit bbb5ebe

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
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').MdxFlowExpression} MdxFlowExpression
8-
* @typedef {import('./complex-types').MdxTextExpression} MdxTextExpression
7+
* @typedef {import('./complex-types.js').MdxFlowExpression} MdxFlowExpression
8+
* @typedef {import('./complex-types.js').MdxTextExpression} MdxTextExpression
99
*/
1010

1111
/**

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"compilerOptions": {
44
"target": "ES2020",
55
"lib": ["ES2020"],
6-
"module": "ES2020",
7-
"moduleResolution": "node",
6+
"module": "Node16",
87
"allowJs": true,
98
"checkJs": true,
109
"declaration": true,

0 commit comments

Comments
 (0)