Skip to content

Commit

Permalink
Preserve triple slash directives
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Apr 17, 2024
1 parent 45ea812 commit 962f318
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/next/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
// Triple slash directives are copied from src/types.ts.
// TypeScript currently does not preserve the tripple-slash directives.
// Once https://github.com/microsoft/TypeScript/pull/57681 is released, we can remove the triple slash directives here.
/// <reference types="react" />
/// <reference types="react/experimental" />
/// <reference types="react-dom" />
/// <reference types="react-dom/experimental" />
export * from './dist/types'
export { default } from './dist/types'

0 comments on commit 962f318

Please sign in to comment.