diff options
| author | Shulhan <ms@kilabit.info> | 2023-11-11 13:01:50 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-11-11 13:17:14 +0700 |
| commit | e56ee3e03a34fa738b626a4fd22fbc051bf7f0b0 (patch) | |
| tree | a66cafc7a357e5f9eedc9e55fd630de5d4406cd4 /_www/interface.ts | |
| parent | 642d46804ec322b06ab46f27f8b8663764ae4e9a (diff) | |
| download | gorankusu-e56ee3e03a34fa738b626a4fd22fbc051bf7f0b0.tar.xz | |
_www: apply all eslint recommendations
Diffstat (limited to '_www/interface.ts')
| -rw-r--r-- | _www/interface.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/_www/interface.ts b/_www/interface.ts index 503480d..bc12b87 100644 --- a/_www/interface.ts +++ b/_www/interface.ts @@ -47,7 +47,7 @@ export interface FormInput { export interface HttpResponseInterface { code: number; message: string; - data?: any; + data?: any; // eslint-disable-line @typescript-eslint/no-explicit-any } export interface HttpTargetInterface { @@ -111,16 +111,16 @@ export interface TargetInterface { } export interface TrunksInterface { - AttackHttp( + attackHttp( target: TargetInterface, http_target: HttpTargetInterface, ): Promise<HttpResponseInterface | null>; - AttackHttpDelete(name: string): Promise<HttpResponseInterface | null>; + attackHttpDelete(name: string): Promise<HttpResponseInterface | null>; - AttackHttpGet(name: string): Promise<HttpResponseInterface>; + attackHttpGet(name: string): Promise<HttpResponseInterface>; - ContentRenderer( + contentRenderer( target: TargetInterface, http_target: HttpTargetInterface | null, ws_target: WebSocketTargetInterface | null, @@ -128,14 +128,14 @@ export interface TrunksInterface { el: HTMLElement, ): void; - SetContent(path: string, el: HTMLElement | null): void; + setContent(path: string, el: HTMLElement | null): void; - RunHttp( + runHttp( target: TargetInterface, http_target: HttpTargetInterface, ): Promise<RunResponseInterface | null>; - RunWebSocket( + runWebSocket( target: TargetInterface, WebSocketTargetInterface: WebSocketTargetInterface, ): Promise<HttpResponseInterface | null>; |
