@@ -34,7 +34,7 @@ declare module "@docusaurus/theme-common" {
3434
3535 export function useThemeConfig ( ) : any ;
3636 export function usePluralForm ( ) : any ;
37- export function isMultiColumnFooterLinks ( ) : any ;
37+ export function isMultiColumnFooterLinks ( links : any ) : any ;
3838 export const ThemeClassNames : any ;
3939 export const ErrorCauseBoundary : any ;
4040}
@@ -90,7 +90,10 @@ declare module "@site/src/lib/utils" {
9090}
9191
9292declare module "@site/src/utils/jsUtils" {
93- export function sortBy ( array : any [ ] , key : string ) : any [ ] ;
93+ export function sortBy < T > (
94+ array : T [ ] ,
95+ getter : ( item : T ) => string | number | boolean ,
96+ ) : T [ ] ;
9497}
9598
9699declare module "@site/src/services/github" {
@@ -100,6 +103,24 @@ declare module "@site/src/services/github" {
100103 }
101104}
102105
106+ declare module "@site/src/services/githubService" {
107+ export const githubService : {
108+ setToken ( token : string ) : void ;
109+ fetchDiscussions ( limit ?: number , signal ?: AbortSignal ) : Promise < any [ ] > ;
110+ } ;
111+ export interface GitHubDiscussion {
112+ [ key : string ] : any ;
113+ }
114+ }
115+
116+ declare module "@site/src/utils/useSafeColorMode" {
117+ export function useSafeColorMode ( ) : {
118+ colorMode : "light" | "dark" ;
119+ isDark : boolean ;
120+ mounted : boolean ;
121+ } ;
122+ }
123+
103124declare module "@site/src/components/ui/button" {
104125 export const Button : any ;
105126}
@@ -108,25 +129,17 @@ declare module "@site/src/database/sponsors" {
108129 export interface Sponsor {
109130 [ key : string ] : any ;
110131 }
132+ const sponsors : Sponsor [ ] ;
133+ export default sponsors ;
111134}
112135
113136declare module "@site/src/data/users" {
114- export interface Tag {
115- [ key : string ] : any ;
116- }
117- export interface TagList {
118- [ key : string ] : any ;
119- }
120- export interface Tags {
121- [ key : string ] : any ;
122- }
123- export interface TagType {
124- [ key : string ] : any ;
125- }
126- export interface User {
127- [ key : string ] : any ;
128- }
129- export const sortedUsers : any ;
137+ export type Tag = import ( "../data/users" ) . Tag ;
138+ export type TagType = import ( "../data/users" ) . TagType ;
139+ export type User = import ( "../data/users" ) . User ;
140+ export const Tags : { [ type in TagType ] : Tag } ;
141+ export const TagList : TagType [ ] ;
142+ export const sortedUsers : User [ ] ;
130143}
131144
132145// Catch-all for any missing modules
0 commit comments