diff options
| author | Shulhan <ms@kilabit.info> | 2023-10-24 03:41:47 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-10-24 22:28:25 +0700 |
| commit | 85c3fc0431e7e75a41894d4669f6a46bbda5440b (patch) | |
| tree | 15b73a82e9eaaa9ac9f2558578c8d7610ad392cd /input/select.d.ts | |
| parent | 891a860299ac76739d59f46280cbed63ff07743e (diff) | |
| download | pakakeh.ts-85c3fc0431e7e75a41894d4669f6a46bbda5440b.tar.xz | |
all: fix all linter warnings from tsc and eslint
In this changes we introduce eslint as our linter for TypeScript and
update our tsconfig to be more strict.
The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website
repository [1].
[1]: https://cs.opensource.google/go/x/website
Diffstat (limited to 'input/select.d.ts')
| -rw-r--r-- | input/select.d.ts | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/input/select.d.ts b/input/select.d.ts index e92d82d..3f39184 100644 --- a/input/select.d.ts +++ b/input/select.d.ts @@ -1,37 +1,37 @@ import { WuiInputOption } from "./option.js"; export interface WuiKeyValue { - [key: string]: string; + [key: string]: string; } export interface WuiKeySelectOption { - [key: string]: WuiInputOption; + [key: string]: WuiInputOption; } export interface WuiInputSelectOpts { - label: string | HTMLElement; - name: string; - options: WuiKeySelectOption; - id?: string; - hint?: string; - class_label?: string; - class_input?: string; - is_disabled?: boolean; - is_hint_toggled?: boolean; - onChangeHandler?: (key: string, value: string) => void; + label: string | HTMLElement; + name: string; + options: WuiKeySelectOption; + id?: string; + hint?: string; + class_label?: string; + class_input?: string; + is_disabled?: boolean; + is_hint_toggled?: boolean; + onChangeHandler?: (key: string, value: string) => void; } export declare class WuiInputSelect { - opts: WuiInputSelectOpts; - el: HTMLElement; - private el_label; - private el_input; - private el_hint; - private el_hint_toggler; - private value_key; - private value; - constructor(opts: WuiInputSelectOpts); - private generateLabel; - private generateInput; - private generateHintToggler; - private generateHint; - private onClickHintToggler; - private onClickInput; - Set(v: string): void; + opts: WuiInputSelectOpts; + el: HTMLElement; + private el_label; + private el_input; + private el_hint; + private el_hint_toggler; + private value_key; + private value; + constructor(opts: WuiInputSelectOpts); + private generateLabel; + private generateInput; + private generateHintToggler; + private generateHint; + private onClickHintToggler; + private onClickInput; + Set(v: string): void; } |
