refactor(frontend): Reactivityで型を明示するように (#12791)
* refactor(frontend): Reactivityで型を明示するように * fix: プロパティの参照が誤っているのを修正 * fix: 初期化の値を空配列に書き換えていた部分をnullに置き換え
This commit is contained in:
		| @@ -27,6 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { watch, ref, shallowRef, computed } from 'vue'; | ||||
| import * as Misskey from 'misskey-js'; | ||||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import MkButton from '@/components/MkButton.vue'; | ||||
| import MkClipPreview from '@/components/MkClipPreview.vue'; | ||||
| @@ -42,7 +43,7 @@ const pagination = { | ||||
| }; | ||||
|  | ||||
| const tab = ref('my'); | ||||
| const favorites = ref(); | ||||
| const favorites = ref<Misskey.entities.Clip[] | null>(null); | ||||
|  | ||||
| const pagingComponent = shallowRef<InstanceType<typeof MkPagination>>(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zyoshoka
					zyoshoka