Skip to content

Commit bf9973d

Browse files
Remove scss type declarations and add missing type definitions for third-party modules
Co-authored-by: rahul.chhabria <[email protected]>
1 parent bd9af1d commit bf9973d

File tree

2 files changed

+24
-9
lines changed

2 files changed

+24
-9
lines changed

src/@types/scss-modules.d.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,30 @@ declare module '@spotlightjs/sidecar/constants';
1212

1313
declare module '@sentry/types';
1414

15+
declare module '@sentry/types' {
16+
// Minimal Envelope type to satisfy imports
17+
export type Envelope = unknown;
18+
}
19+
20+
// -------------------- Rollup missing exports --------------------
21+
declare module 'rollup' {
22+
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>;
33+
}
34+
35+
// Generic placeholders for mdx-bundler generics
36+
declare type ExportedObject = Record<string, unknown>;
37+
declare type Frontmatter = Record<string, unknown>;
38+
1539
// Provide missing iterator type aliases used in some Next.js type declarations
1640
// See: node_modules/next/dist/server/web/spec-extension/adapters/headers.d.ts
1741
// node_modules/next/dist/compiled/@edge-runtime/cookies/index.d.ts

0 commit comments

Comments
 (0)