diff --git a/tests/cases/compiler/checkerInitializationCrash.ts b/tests/cases/compiler/checkerInitializationCrash.ts new file mode 100644 index 0000000000000..969f81e6d354a --- /dev/null +++ b/tests/cases/compiler/checkerInitializationCrash.ts @@ -0,0 +1,40 @@ +// @module: esnext +// @moduleResolution: node +// @esModuleInterop: true + +// @Filename: /node_modules/@fullcalendar/react/index.d.ts +import * as react from 'react'; +declare global { + namespace FullCalendarVDom { + export import VNode = react.ReactNode; + } +} + +export default class FullCalendar { +} + +// @Filename: /node_modules/@fullcalendar/core/index.d.ts +import * as preact from 'preact'; +declare global { + namespace FullCalendarVDom { + type VNode = preact.VNode; + } +} + +export type EventInput = any; + +// @Filename: /node_modules/@types/react/index.d.ts +export = React; +export as namespace React; +declare namespace React { + type ReactNode = any; + function useMemo(factory: () => T, deps: undefined): T; +} + +// @Filename: /node_modules/preact/index.d.ts +export as namespace preact; +export interface VNode

{} + +// @Filename: /index.tsx +import FullCalendar from "@fullcalendar/react"; +import { EventInput } from "@fullcalendar/core";