mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-04 04:14:14 +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:
@@ -78,7 +78,7 @@ import { ensureSignin } from '@/i.js';
|
||||
const $i = ensureSignin();
|
||||
|
||||
const props = defineProps<{
|
||||
avatarDecoration?: any,
|
||||
avatarDecoration?: Misskey.entities.AdminAvatarDecorationsListResponse[number],
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
@@ -109,7 +109,7 @@ async function addRole() {
|
||||
rolesThatCanBeUsedThisDecoration.value.push(roles.find(r => r.id === roleId)!);
|
||||
}
|
||||
|
||||
async function removeRole(role, ev) {
|
||||
async function removeRole(role: Misskey.entities.Role, ev: PointerEvent) {
|
||||
rolesThatCanBeUsedThisDecoration.value = rolesThatCanBeUsedThisDecoration.value.filter(x => x.id !== role.id);
|
||||
}
|
||||
|
||||
@@ -147,6 +147,8 @@ async function done() {
|
||||
}
|
||||
|
||||
async function del() {
|
||||
if (props.avatarDecoration == null) return;
|
||||
|
||||
const { canceled } = await os.confirm({
|
||||
type: 'warning',
|
||||
text: i18n.tsx.removeAreYouSure({ x: name.value }),
|
||||
|
||||
Reference in New Issue
Block a user