1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 01:45:33 +02:00

refactor8frontend9: anyを除去 (#16778)

This commit is contained in:
かっこかり
2025-11-10 15:33:54 +09:00
committed by GitHub
parent 73bcd330f7
commit fd2fe34270
16 changed files with 42 additions and 110 deletions

View File

@@ -257,7 +257,7 @@ const {
const user = ref(result.user);
const info = ref(result.info);
const ips = ref(result.ips);
const ap = ref<any>(null);
const ap = ref<Misskey.entities.ApGetResponse | null>(null);
const moderator = ref(info.value.isModerator);
const silenced = ref(info.value.isSilenced);
const suspended = ref(info.value.isSuspended);

View File

@@ -44,7 +44,7 @@ async function addRelay() {
if (canceled || inbox == null) return;
misskeyApi('admin/relays/add', {
inbox,
}).then((relay: any) => {
}).then(() => {
refresh();
}).catch((err: any) => {
os.alert({

View File

@@ -161,7 +161,11 @@ async function _fetch_() {
},
raw: res.data,
};
} catch (err: any) {
} catch (err) {
if (!(err instanceof Error)) {
throw err;
}
switch (err.message.toLowerCase()) {
case 'this theme is already installed':
errorKV.value = {