diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2023-12-26 14:19:35 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-26 14:19:35 +0900 |
| commit | 75034d9240c069baff5a24409ea172374261ea3b (patch) | |
| tree | 2b701b310befef3cdd6a69e78b75f66d48809826 /packages/frontend/src/pages/flash/flash-edit.vue | |
| parent | (dev) Issue Templateに、自分で実装してPRを出したいかの意思... (diff) | |
| download | sharkey-75034d9240c069baff5a24409ea172374261ea3b.tar.gz sharkey-75034d9240c069baff5a24409ea172374261ea3b.tar.bz2 sharkey-75034d9240c069baff5a24409ea172374261ea3b.zip | |
refactor(frontend): Reactivityで型を明示するように (#12791)
* refactor(frontend): Reactivityで型を明示するように
* fix: プロパティの参照が誤っているのを修正
* fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
Diffstat (limited to 'packages/frontend/src/pages/flash/flash-edit.vue')
| -rw-r--r-- | packages/frontend/src/pages/flash/flash-edit.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/frontend/src/pages/flash/flash-edit.vue b/packages/frontend/src/pages/flash/flash-edit.vue index 67a655b677..147a381c98 100644 --- a/packages/frontend/src/pages/flash/flash-edit.vue +++ b/packages/frontend/src/pages/flash/flash-edit.vue @@ -35,6 +35,7 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup> import { computed, ref } from 'vue'; +import * as Misskey from 'misskey-js'; import MkButton from '@/components/MkButton.vue'; import * as os from '@/os.js'; import { i18n } from '@/i18n.js'; @@ -364,8 +365,8 @@ const props = defineProps<{ id?: string; }>(); -const flash = ref(null); -const visibility = ref('public'); +const flash = ref<Misskey.entities.Flash | null>(null); +const visibility = ref<Misskey.entities.FlashUpdateRequest['visibility']>('public'); if (props.id) { flash.value = await os.api('flash/show', { |