diff --git a/lib/ast-to-react.js b/lib/ast-to-react.js index da2cbe8f..57344426 100644 --- a/lib/ast-to-react.js +++ b/lib/ast-to-react.js @@ -4,7 +4,7 @@ */ /** - * @template T + * @template {import('react').ElementType} T * @typedef {import('react').ComponentPropsWithoutRef} ComponentPropsWithoutRef */ diff --git a/package.json b/package.json index 42827ebc..f2a0b86f 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "remark-preset-wooorm": "^9.0.0", "remark-toc": "^8.0.0", "type-coverage": "^2.0.0", - "typescript": "^4.0.0", + "typescript": "^5.0.0", "xo": "^0.53.0" }, "scripts": {