2024-04-03 11:25:54 +00:00
|
|
|
/// <reference types="vite/client" />
|
|
|
|
/// <reference types="vite-plugin-svgr/client" />
|
|
|
|
/// <reference types="vite-plugin-terminal/client" />
|
2024-04-29 06:32:14 +00:00
|
|
|
/// <reference types="cypress" />
|
|
|
|
/// <reference types="cypress-plugin-tab" />
|
2024-07-08 05:45:57 +00:00
|
|
|
|
2024-04-29 06:32:14 +00:00
|
|
|
interface Window {
|
|
|
|
refresh_token: (token: string) => void;
|
|
|
|
invalid_token: () => void;
|
|
|
|
WebFont?: {
|
|
|
|
load: (options: { google: { families: string[] } }) => void;
|
|
|
|
};
|
2024-07-08 05:45:57 +00:00
|
|
|
toast: {
|
|
|
|
success: (message: string) => void;
|
|
|
|
error: (message: string) => void;
|
2024-08-01 04:59:04 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
info: (props: any) => void;
|
2024-07-08 05:45:57 +00:00
|
|
|
clear: () => void;
|
|
|
|
default: (message: string) => void;
|
|
|
|
warning: (message: string) => void;
|
|
|
|
};
|
|
|
|
|
|
|
|
Prism: {
|
|
|
|
tokenize: (text: string, grammar: Prism.Grammar) => Prism.Token[];
|
|
|
|
languages: Record<string, Prism.Grammar>;
|
|
|
|
plugins: {
|
|
|
|
autoloader: {
|
|
|
|
languages_path: string;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hljs: {
|
|
|
|
highlightAuto: (code: string) => { language: string };
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace Prism {
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
interface Token {
|
|
|
|
type: string;
|
|
|
|
content: string | Token[];
|
|
|
|
length: number;
|
|
|
|
}
|
2024-04-29 06:32:14 +00:00
|
|
|
}
|