Skip to content

Commit 755e1cb

Browse files
committed
Add minimal failing test
1 parent a3d23d3 commit 755e1cb

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

Diff for: tests/cases/compiler/checkerInitializationCrash.ts

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
// @module: esnext
2+
// @moduleResolution: node
3+
// @esModuleInterop: true
4+
5+
// @Filename: /node_modules/@fullcalendar/react/index.d.ts
6+
import * as react from 'react';
7+
declare global {
8+
namespace FullCalendarVDom {
9+
export import VNode = react.ReactNode;
10+
}
11+
}
12+
13+
export default class FullCalendar {
14+
}
15+
16+
// @Filename: /node_modules/@fullcalendar/core/index.d.ts
17+
import * as preact from 'preact';
18+
declare global {
19+
namespace FullCalendarVDom {
20+
type VNode = preact.VNode<any>;
21+
}
22+
}
23+
24+
export type EventInput = any;
25+
26+
// @Filename: /node_modules/@types/react/index.d.ts
27+
export = React;
28+
export as namespace React;
29+
declare namespace React {
30+
type ReactNode = any;
31+
function useMemo<T>(factory: () => T, deps: undefined): T;
32+
}
33+
34+
// @Filename: /node_modules/preact/index.d.ts
35+
export as namespace preact;
36+
export interface VNode<P = {}> {}
37+
38+
// @Filename: /index.tsx
39+
import FullCalendar from "@fullcalendar/react";
40+
import { EventInput } from "@fullcalendar/core";

0 commit comments

Comments
 (0)