chore(client): fix type

This commit is contained in:
syuilo 2022-06-26 15:55:51 +09:00
parent 311478e725
commit 4329d9e76d
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ const props = defineProps<{
instance: misskey.entities.Instance; instance: misskey.entities.Instance;
}>(); }>();
let chartValues = $ref<number | null>(null); let chartValues = $ref<number[] | null>(null);
os.apiGet('charts/instance', { host: props.instance.host, limit: 16 + 1, span: 'day' }).then(res => { os.apiGet('charts/instance', { host: props.instance.host, limit: 16 + 1, span: 'day' }).then(res => {
// //

View file

@ -19,7 +19,7 @@ const props = defineProps<{
user: misskey.entities.User; user: misskey.entities.User;
}>(); }>();
let chartValues = $ref<number | null>(null); let chartValues = $ref<number[] | null>(null);
os.apiGet('charts/user/notes', { userId: props.user.id, limit: 16 + 1, span: 'day' }).then(res => { os.apiGet('charts/user/notes', { userId: props.user.id, limit: 16 + 1, span: 'day' }).then(res => {
// //