Skip to content

Commit f7b846b

Browse files
Add TypeScript type declarations for various build and runtime modules
Co-authored-by: rahul.chhabria <[email protected]>
1 parent 7104c34 commit f7b846b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/@types/third-party.d.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
declare module 'webpack';
2+
3+
declare module 'rollup';
4+
5+
declare module 'rollup/parseAst';
6+
7+
declare module '@farmfe/core';
8+
9+
declare module '@rspack/core';
10+
11+
declare module '@rspack/core/dist/config/types';
12+
13+
declare module 'rolldown';
14+
15+
declare module 'rolldown/dist/types/plugin';
16+
17+
declare module '@spotlightjs/sidecar/constants';
18+
19+
declare module '@sentry/types';
20+
21+
// Provide missing iterator type aliases used in some Next.js type declarations
22+
// See: node_modules/next/dist/server/web/spec-extension/adapters/headers.d.ts
23+
// node_modules/next/dist/compiled/@edge-runtime/cookies/index.d.ts
24+
// They reference `HeadersIterator` and `MapIterator` which are not globally defined.
25+
26+
type MapIterator<T> = Iterator<T>;
27+
type HeadersIterator<T> = Iterator<T>;

0 commit comments

Comments
 (0)