refactor(frontend): widgets/server-metric内の型エラーを除去 (#12937)

This commit is contained in:
zyoshoka 2024-01-07 23:56:46 +09:00 committed by GitHub
parent fd519f5def
commit 0e536bdd86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 103 additions and 30 deletions

View file

@ -20,13 +20,13 @@ import * as Misskey from 'misskey-js';
import XPie from './pie.vue';
const props = defineProps<{
connection: any,
connection: Misskey.ChannelConnection<Misskey.Channels['serverStats']>,
meta: Misskey.entities.ServerInfoResponse
}>();
const usage = ref<number>(0);
function onStats(stats) {
function onStats(stats: Misskey.entities.ServerStats) {
usage.value = stats.cpu;
}