2024-07-07 09:32:30 -06:00
|
|
|
declare module '*.svg' {
|
|
|
|
const value: string;
|
|
|
|
export default value;
|
|
|
|
}
|
2024-07-11 04:20:51 -06:00
|
|
|
|
2024-08-10 03:46:48 -06:00
|
|
|
declare module '*.css' {
|
|
|
|
const value: string;
|
|
|
|
export default value;
|
|
|
|
}
|
|
|
|
|
2024-12-15 14:02:32 -07:00
|
|
|
declare module '*.vue' {
|
|
|
|
import type {DefineComponent} from 'vue';
|
|
|
|
const component: DefineComponent<unknown, unknown, any>;
|
|
|
|
export default component;
|
|
|
|
// List of named exports from vue components, used to make `tsc` output clean.
|
|
|
|
// To actually lint .vue files, `vue-tsc` is used because `tsc` can not parse them.
|
|
|
|
export function initRepoBranchTagSelector(selector: string): void;
|
|
|
|
export function initDashboardRepoList(): void;
|
|
|
|
export function initRepositoryActionView(): void;
|
|
|
|
}
|
|
|
|
|
2024-07-11 04:20:51 -06:00
|
|
|
declare let __webpack_public_path__: string;
|
|
|
|
|
2024-08-28 10:32:38 -06:00
|
|
|
declare module 'htmx.org/dist/htmx.esm.js' {
|
|
|
|
const value = await import('htmx.org');
|
|
|
|
export default value;
|
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'uint8-to-base64' {
|
2024-12-15 14:02:32 -07:00
|
|
|
export function encode(arrayBuffer: Uint8Array): string;
|
|
|
|
export function decode(base64str: string): Uint8Array;
|
2024-08-28 10:32:38 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
declare module 'swagger-ui-dist/swagger-ui-es-bundle.js' {
|
|
|
|
const value = await import('swagger-ui-dist');
|
|
|
|
export default value.SwaggerUIBundle;
|
|
|
|
}
|
|
|
|
|
|
|
|
interface JQuery {
|
|
|
|
api: any, // fomantic
|
|
|
|
areYouSure: any, // jquery.are-you-sure
|
|
|
|
dimmer: any, // fomantic
|
|
|
|
dropdown: any; // fomantic
|
|
|
|
modal: any; // fomantic
|
|
|
|
tab: any; // fomantic
|
|
|
|
transition: any, // fomantic
|
2024-12-11 01:29:04 -07:00
|
|
|
search: any, // fomantic
|
2024-08-28 10:32:38 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
interface JQueryStatic {
|
|
|
|
api: any, // fomantic
|
|
|
|
}
|
|
|
|
|
|
|
|
interface Element {
|
|
|
|
_tippy: import('tippy.js').Instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
type Writable<T> = { -readonly [K in keyof T]: T[K] };
|
|
|
|
|
2024-07-11 04:20:51 -06:00
|
|
|
interface Window {
|
|
|
|
config: import('./web_src/js/types.ts').Config;
|
|
|
|
$: typeof import('@types/jquery'),
|
|
|
|
jQuery: typeof import('@types/jquery'),
|
2024-08-28 10:32:38 -06:00
|
|
|
htmx: Omit<typeof import('htmx.org/dist/htmx.esm.js').default, 'config'> & {
|
|
|
|
config?: Writable<typeof import('htmx.org').default.config>,
|
|
|
|
},
|
|
|
|
ui?: any,
|
2024-07-25 17:31:24 -06:00
|
|
|
_globalHandlerErrors: Array<ErrorEvent & PromiseRejectionEvent> & {
|
|
|
|
_inited: boolean,
|
|
|
|
push: (e: ErrorEvent & PromiseRejectionEvent) => void | number,
|
|
|
|
},
|
2024-08-28 10:32:38 -06:00
|
|
|
__webpack_public_path__: string;
|
2024-11-21 06:57:42 -07:00
|
|
|
grecaptcha: any,
|
|
|
|
turnstile: any,
|
|
|
|
hcaptcha: any,
|
|
|
|
codeEditors: any[],
|
2024-12-11 01:29:04 -07:00
|
|
|
updateCloneStates: () => void,
|
2024-08-10 03:46:48 -06:00
|
|
|
}
|