blog / src /env.d.ts
cacode's picture
Upload 434 files
96dd062 verified
/// <reference types="astro/client" />
/// <reference path="../.astro/types.d.ts" />
declare global {
interface ImportMetaEnv {
readonly MEILI_MASTER_KEY: string;
}
interface ITOCManager {
init: () => void;
cleanup: () => void;
}
interface Window {
SidebarTOC: {
manager: ITOCManager | null;
};
FloatingTOC: {
btn: HTMLElement | null;
panel: HTMLElement | null;
manager: ITOCManager | null;
isPostPage: () => boolean;
};
toggleFloatingTOC: () => void;
tocInternalNavigation: boolean;
// swup is defined in global.d.ts
// biome-ignore lint/suspicious/noExplicitAny: External library without types
spine: any;
closeAnnouncement: () => void;
}
}
export {};