/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/types.d.ts
22 строки
813 B
Sébastien Lorber
chore(monorepo): upgrade React monorepo types to v19 (#11697)
29 янв 2026, 19:35
Не верифицирован
29 янв 2026, 19:35
e553c03
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ // This is a bad workaround to make our site typecheck under React 19 // We run our site with "skipLibCheck=false", unfortunately some libraries // are still using the global JSX namespace, that has been removed in v19 // See https://react.dev/blog/2024/04/25/react-19-upgrade-guide#the-jsx-namespace-in-typescript // See https://github.com/mdx-js/mdx/issues/2487 import type {JSX as Jsx} from 'react/jsx-runtime'; declare global { namespace JSX { type ElementClass = Jsx.ElementClass; type Element = Jsx.Element; type ElementType = Jsx.ElementType; type IntrinsicElements = Jsx.IntrinsicElements; } }