From 5384a674e5d2d41c04bfbb80164c4b39bd89ca5e Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Mon, 20 Mar 2023 08:27:13 -0400 Subject: [PATCH] Fix new type error in TypeScript 5.0 --- lib/ast-to-react.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {