AppFlowy/frontend/appflowy_web_app/src/vite-env.d.ts
Kilu.He 2402b4c6f1
feat: support global comment on publish (#5834)
* feat: support duplicate UI on web

* fix: replace google svg

* fix: modified some copy

* fix: adjust modal position

* fix: upgrade wasm package

* fix: text overflow

* fix: global comments

* fix: replace appflowy icon

* fix: demond load outline

* fix: lazy load

* fix: close duplicate entry

* fix: ci error

* fix: modified comment styles

* fix: adjust space

* fix: easy find reply comment

* fix: calendar scroll bugs

* fix: image render

* fix: replace loading

* fix: issues of test session

* fix: fixed adding comment

* fix: database view name
2024-08-01 12:59:04 +08:00

45 lines
1.1 KiB
TypeScript

/// <reference types="vite/client" />
/// <reference types="vite-plugin-svgr/client" />
/// <reference types="vite-plugin-terminal/client" />
/// <reference types="cypress" />
/// <reference types="cypress-plugin-tab" />
interface Window {
refresh_token: (token: string) => void;
invalid_token: () => void;
WebFont?: {
load: (options: { google: { families: string[] } }) => void;
};
toast: {
success: (message: string) => void;
error: (message: string) => void;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
info: (props: any) => void;
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;
}
}