Skip to content

Commit 3e57837

Browse files
committed
Refactor Docusaurus module declarations by removing unnecessary export statements for improved type clarity
1 parent cb99a23 commit 3e57837

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/types/global.d.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ declare module "@docusaurus/theme-common" {
3737
export function isMultiColumnFooterLinks(): any;
3838
export const ThemeClassNames: any;
3939
export const ErrorCauseBoundary: any;
40-
41-
// Export all other members as any
42-
export const [key: string]: any;
4340
}
4441

4542
// Other Docusaurus modules
@@ -86,37 +83,31 @@ declare module "@docusaurus/Head" {
8683
declare module "@site/src/lib/statsProvider" {
8784
export function useCommunityStatsContext(): any;
8885
export const CommunityStatsProvider: any;
89-
export const [key: string]: any;
9086
}
9187

9288
declare module "@site/src/lib/utils" {
9389
export function cn(...args: any[]): string;
94-
export const [key: string]: any;
9590
}
9691

9792
declare module "@site/src/utils/jsUtils" {
9893
export function sortBy(array: any[], key: string): any[];
99-
export const [key: string]: any;
10094
}
10195

10296
declare module "@site/src/services/github" {
10397
export const githubService: any;
10498
export interface GitHubDiscussion {
10599
[key: string]: any;
106100
}
107-
export const [key: string]: any;
108101
}
109102

110103
declare module "@site/src/components/ui/button" {
111104
export const Button: any;
112-
export const [key: string]: any;
113105
}
114106

115107
declare module "@site/src/database/sponsors" {
116108
export interface Sponsor {
117109
[key: string]: any;
118110
}
119-
export const [key: string]: any;
120111
}
121112

122113
declare module "@site/src/data/users" {
@@ -136,12 +127,10 @@ declare module "@site/src/data/users" {
136127
[key: string]: any;
137128
}
138129
export const sortedUsers: any;
139-
export const [key: string]: any;
140130
}
141131

142132
// Catch-all for any missing modules
143133
declare module "*" {
144134
const content: any;
145135
export default content;
146-
export const [key: string]: any;
147136
}

0 commit comments

Comments
 (0)