Skip to content

Commit 85a734e

Browse files
committed
chore: remove skipLibCheck
With @codifycli/schemas 1.4.1 the schemas typings check under TS 5.9. The only remaining library error was ink-spinner (via @assistant-ui/react-ink), which still types its component with the global JSX namespace that @types/react 19 removed; src/types/global-jsx.d.ts aliases it to React.JSX. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016QnBk1T9WChsm317yyQKmh
1 parent c305d13 commit 85a734e

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

‎src/types/global-jsx.d.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @types/react 19 removed the global JSX namespace. ink-spinner (a dependency of @assistant-ui/react-ink) still
2+
// types its component as returning `JSX.Element`; this alias lets its typings check without skipLibCheck.
3+
import type React from 'react';
4+
5+
declare global {
6+
namespace JSX {
7+
type Element = React.JSX.Element;
8+
}
9+
}

‎tsconfig.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"outDir": "dist",
1010
"rootDir": "src",
1111
"strict": true,
12-
"skipLibCheck": true,
1312
"target": "es2022"
1413
},
1514
"include": [

0 commit comments

Comments
 (0)