diff --git a/lib/ast-to-react.js b/lib/ast-to-react.js index 975cbc40..da2cbe8f 100644 --- a/lib/ast-to-react.js +++ b/lib/ast-to-react.js @@ -19,7 +19,7 @@ * @typedef {import('hast').DocType} Doctype * @typedef {import('property-information').Info} Info * @typedef {import('property-information').Schema} Schema - * @typedef {import('./complex-types').ReactMarkdownProps} ReactMarkdownProps + * @typedef {import('./complex-types.js').ReactMarkdownProps} ReactMarkdownProps * * @typedef Raw * @property {'raw'} type @@ -87,7 +87,7 @@ * @property {TableRowComponent|ReactMarkdownNames} tr * @property {UnorderedListComponent|ReactMarkdownNames} ul * - * @typedef {Partial & SpecialComponents>} Components + * @typedef {Partial & SpecialComponents>} Components * * @typedef Options * @property {boolean} [sourcePos=false] diff --git a/test/test.jsx b/test/test.jsx index 4e1b9341..8b06635b 100644 --- a/test/test.jsx +++ b/test/test.jsx @@ -1158,7 +1158,7 @@ test('should pass index of a node under its parent to components if `includeElem test('should be able to render components with forwardRef in HOC', () => { /** * @typedef {import('react').Ref} Ref - * @typedef {JSX.IntrinsicElements['a'] & import('../lib/ast-to-react').ReactMarkdownProps} Props + * @typedef {JSX.IntrinsicElements['a'] & import('../lib/ast-to-react.js').ReactMarkdownProps} Props */ /** diff --git a/tsconfig.json b/tsconfig.json index 70285598..73fae2a1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,19 +2,14 @@ "include": ["lib/**/*.js", "test/**/*.jsx", "test/**/*.js", "index.js"], "exclude": ["**/*.min.js"], "compilerOptions": { - "target": "ES2020", - "lib": ["ES2020", "DOM"], - "module": "ES2020", - "moduleResolution": "node", + "target": "es2021", + "lib": ["es2020", "dom"], + "module": "node16", "jsx": "react", - "allowJs": true, "checkJs": true, "declaration": true, "emitDeclarationOnly": true, - "allowSyntheticDefaultImports": true, "skipLibCheck": true, - "noImplicitAny": false, - "noImplicitThis": true, "strict": true } }