Skip to content

Commit 962f318

Browse files
committed
Preserve triple slash directives
1 parent 45ea812 commit 962f318

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/next/types.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1+
// Triple slash directives are copied from src/types.ts.
2+
// TypeScript currently does not preserve the tripple-slash directives.
3+
// Once https://github.com/microsoft/TypeScript/pull/57681 is released, we can remove the triple slash directives here.
4+
/// <reference types="react" />
5+
/// <reference types="react/experimental" />
6+
/// <reference types="react-dom" />
7+
/// <reference types="react-dom/experimental" />
18
export * from './dist/types'
29
export { default } from './dist/types'

0 commit comments

Comments
 (0)