aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/globals.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/globals.d.ts')
-rw-r--r--web_src/js/globals.d.ts16
1 files changed, 7 insertions, 9 deletions
diff --git a/web_src/js/globals.d.ts b/web_src/js/globals.d.ts
index 0c540ac296..e4b540122d 100644
--- a/web_src/js/globals.d.ts
+++ b/web_src/js/globals.d.ts
@@ -25,11 +25,6 @@ declare module 'htmx.org/dist/htmx.esm.js' {
export default value;
}
-declare module 'uint8-to-base64' {
- export function encode(arrayBuffer: Uint8Array): string;
- export function decode(base64str: string): Uint8Array;
-}
-
declare module 'swagger-ui-dist/swagger-ui-es-bundle.js' {
const value = await import('swagger-ui-dist');
export default value.SwaggerUIBundle;
@@ -58,21 +53,24 @@ interface Element {
type Writable<T> = { -readonly [K in keyof T]: T[K] };
interface Window {
+ __webpack_public_path__: string;
config: import('./web_src/js/types.ts').Config;
$: typeof import('@types/jquery'),
jQuery: typeof import('@types/jquery'),
htmx: Omit<typeof import('htmx.org/dist/htmx.esm.js').default, 'config'> & {
config?: Writable<typeof import('htmx.org').default.config>,
+ process?: (elt: Element | string) => void,
},
- ui?: any,
_globalHandlerErrors: Array<ErrorEvent & PromiseRejectionEvent> & {
_inited: boolean,
push: (e: ErrorEvent & PromiseRejectionEvent) => void | number,
},
- __webpack_public_path__: string;
+ codeEditors: any[], // export editor for customization
+
+ // various captcha plugins
grecaptcha: any,
turnstile: any,
hcaptcha: any,
- codeEditors: any[],
- updateCloneStates: () => void,
+
+ // do not add more properties here unless it is a must
}