Skip to content

Commit e6f0ae3

Browse files
sandersnDesplandis
authored andcommitted
Require TS 5.1 for next-pwa (DefinitelyTyped#65565)
This is a requirement relevant mainly for testing on DT; DT uses `typeRoots` to redirect packages like react to `@types/react`. But versions previous to 5.1 had a triple-slash resolution bug when typeRoots was set [that was only fixed in 5.1](microsoft/TypeScript#51715). An alternative fix is to move react/experimental.d.ts to react/experimental/index.d.ts (and the same for react-dom), but I doubt this bug affects anybody but people who need to change next-pwa on DT, so I think it's easier to change next-pwa instead.
1 parent c4e14f4 commit e6f0ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/next-pwa/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Project: https://github.com/shadowwalker/next-pwa#readme
33
// Definitions by: Nivaldo Farias <https://github.com/NivaldoFarias>
44
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
5-
// Minimum TypeScript Version: 4.5
5+
// Minimum TypeScript Version: 5.1
66

77
/// <reference types="react"/>
88

0 commit comments

Comments
 (0)