@@ -10,29 +10,19 @@ declare module 'rolldown/dist/types/plugin';
1010
1111declare module '@spotlightjs/sidecar/constants' ;
1212
13- declare module '@sentry/types' ;
14-
15- declare module '@sentry/types' {
16- // Minimal Envelope type to satisfy imports
17- export type Envelope = unknown ;
13+ // rollup/parseAst helper (only this specific path is missing)
14+ declare module 'rollup/parseAst' {
15+ export function parseAst ( code : string ) : unknown ;
16+ export function parseAstAsync ( code : string ) : Promise < unknown > ;
1817}
1918
20- // -------------------- Rollup missing exports --------------------
19+ // Augment rollup types to add removed interfaces used by older plugins
2120declare module 'rollup' {
21+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
2222 export interface AcornNode extends Record < string , unknown > { }
23- // fallback placeholders
24- export interface SourceMapInput extends Record < string , unknown > { }
25- export interface EmittedAsset extends Record < string , unknown > { }
26- export interface PluginContextMeta extends Record < string , unknown > { }
27- export type Plugin < T = any > = any ;
28- }
29-
30- declare module 'rollup/parseAst' {
31- export function parseAst ( code : string ) : unknown ;
32- export function parseAstAsync ( code : string ) : Promise < unknown > ;
3323}
3424
35- // Generic placeholders for mdx-bundler generics
25+ // Generic placeholders for mdx-bundler generics used in their .d.ts
3626declare type ExportedObject = Record < string , unknown > ;
3727declare type Frontmatter = Record < string , unknown > ;
3828
0 commit comments