28 lines
657 B
TypeScript
28 lines
657 B
TypeScript
/// <reference path="../.astro/types.d.ts" />
|
|
|
|
// Extend the Window interface to include custom properties
|
|
declare global {
|
|
interface Window {
|
|
themeUtils: {
|
|
initTheme: () => void;
|
|
toggleTheme: () => void;
|
|
getStoredTheme: () => string;
|
|
};
|
|
toolsData: any[];
|
|
showToolDetails: (toolName: string) => void;
|
|
hideToolDetails: () => void;
|
|
}
|
|
|
|
// Custom event types
|
|
interface WindowEventMap {
|
|
'toolsFiltered': CustomEvent<any[]>;
|
|
'viewChanged': CustomEvent<string>;
|
|
}
|
|
}
|
|
|
|
// Also declare the modules that might not be recognized
|
|
declare module 'js-yaml' {
|
|
export function load(str: string): any;
|
|
}
|
|
|
|
export {}; |