From bbb5ebef953dcd9ce702bd2444f4329dfece0765 Mon Sep 17 00:00:00 2001 From: Remco Haszing Date: Fri, 30 Sep 2022 18:41:08 +0200 Subject: [PATCH] Fix type imports for Node16 module resolution Closes GH-3. Reviewed-by: JounQin Reviewed-by: Christian Murphy Reviewed-by: Titus Wormer --- index.js | 4 ++-- tsconfig.json | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index b7c25b0..267f001 100644 --- a/index.js +++ b/index.js @@ -4,8 +4,8 @@ * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle * @typedef {import('estree-jsx').Program} Program - * @typedef {import('./complex-types').MdxFlowExpression} MdxFlowExpression - * @typedef {import('./complex-types').MdxTextExpression} MdxTextExpression + * @typedef {import('./complex-types.js').MdxFlowExpression} MdxFlowExpression + * @typedef {import('./complex-types.js').MdxTextExpression} MdxTextExpression */ /** diff --git a/tsconfig.json b/tsconfig.json index e31adf8..4a6f82d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,7 @@ "compilerOptions": { "target": "ES2020", "lib": ["ES2020"], - "module": "ES2020", - "moduleResolution": "node", + "module": "Node16", "allowJs": true, "checkJs": true, "declaration": true,