mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
ae4277a9a8
* move files * commit the rest of the files * fix lockfile * fix workflow * fix type errors * fix tests * only run ci when certain files change * run correct test command in ci * version * fix pypi script --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
32 lines
651 B
TypeScript
32 lines
651 B
TypeScript
declare global {
|
|
interface Window {
|
|
__gradio_mode__: "app" | "website";
|
|
launchGradio: Function;
|
|
launchGradioFromSpaces: Function;
|
|
gradio_config: Config;
|
|
scoped_css_attach: (link: HTMLLinkElement) => void;
|
|
__is_colab__: boolean;
|
|
}
|
|
}
|
|
|
|
export interface Config {
|
|
auth_required: boolean | undefined;
|
|
auth_message: string;
|
|
components: any[];
|
|
css: string | null;
|
|
dependencies: any[];
|
|
dev_mode: boolean;
|
|
enable_queue: boolean;
|
|
layout: any;
|
|
mode: "blocks" | "interface";
|
|
root: string;
|
|
theme: string;
|
|
title: string;
|
|
version: string;
|
|
is_space: boolean;
|
|
is_colab: boolean;
|
|
show_api: boolean;
|
|
stylesheets: string[];
|
|
path: string;
|
|
}
|