1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-15 03:25:47 +02:00

refactor: make noImplicitAny true (#17083)

* wip

* Update emojis.emoji.vue

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update manager.ts

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Update analytics.ts
This commit is contained in:
syuilo
2026-01-09 22:06:40 +09:00
committed by GitHub
parent 2a14025c29
commit 41592eafb3
233 changed files with 966 additions and 963 deletions

View File

@@ -40,7 +40,7 @@ import XCode from '@/components/MkCode.core.vue';
const props = withDefaults(defineProps<{
modelValue: string | null;
lang: string;
lang?: string;
required?: boolean;
readonly?: boolean;
disabled?: boolean;
@@ -51,7 +51,7 @@ const props = withDefaults(defineProps<{
});
const emit = defineEmits<{
(ev: 'change', _ev: KeyboardEvent): void;
(ev: 'change', _ev: InputEvent): void;
(ev: 'keydown', _ev: KeyboardEvent): void;
(ev: 'enter'): void;
(ev: 'update:modelValue', value: string): void;
@@ -63,15 +63,17 @@ const focused = ref(false);
const changed = ref(false);
const inputEl = useTemplateRef('inputEl');
const focus = () => inputEl.value?.focus();
function focus() {
inputEl.value?.focus();
}
const onInput = (ev) => {
v.value = ev.target?.value ?? v.value;
function onInput(ev: InputEvent) {
v.value = (inputEl.value?.value) ?? '';
changed.value = true;
emit('change', ev);
};
}
const onKeydown = (ev: KeyboardEvent) => {
function onKeydown(ev: KeyboardEvent) {
if (ev.isComposing || ev.key === 'Process' || ev.keyCode === 229) return;
emit('keydown', ev);
@@ -102,12 +104,12 @@ const onKeydown = (ev: KeyboardEvent) => {
});
ev.preventDefault();
}
};
}
const updated = () => {
function updated() {
changed.value = false;
emit('update:modelValue', v.value);
};
}
const debouncedUpdated = debounce(1000, updated);