summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-11-12 21:29:59 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-11-12 21:29:59 +0900
commit9b092e918a7ff99049a7bf520c454cb1c323f9b8 (patch)
treef31e60ef0fa20eb2b7e54adb8509d0d7bea9a46c
parentrefactor (diff)
downloadmisskey-9b092e918a7ff99049a7bf520c454cb1c323f9b8.tar.gz
misskey-9b092e918a7ff99049a7bf520c454cb1c323f9b8.tar.bz2
misskey-9b092e918a7ff99049a7bf520c454cb1c323f9b8.zip
refactoring
-rw-r--r--packages/client/src/components/notification.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/client/src/components/notification.vue b/packages/client/src/components/notification.vue
index b629820043..1f61bee6f8 100644
--- a/packages/client/src/components/notification.vue
+++ b/packages/client/src/components/notification.vue
@@ -69,6 +69,7 @@
<script lang="ts">
import { defineComponent, ref, onMounted, onUnmounted } from 'vue';
+import * as misskey from 'misskey-js';
import { getNoteSummary } from '@/scripts/get-note-summary';
import XReactionIcon from './reaction-icon.vue';
import MkFollowButton from './follow-button.vue';
@@ -105,7 +106,7 @@ export default defineComponent({
const reactionRef = ref(null);
onMounted(() => {
- let readObserver: IntersectionObserver = null;
+ let readObserver: IntersectionObserver | null = null;
let connection = null;
if (!props.notification.isRead) {
@@ -168,7 +169,7 @@ export default defineComponent({
closeReactionTooltip();
};
- let changeReactionTooltipShowingState: () => void;
+ let changeReactionTooltipShowingState: (() => void) | null;
const openReactionTooltip = () => {
closeReactionTooltip();
@@ -195,7 +196,7 @@ export default defineComponent({
};
return {
- getNoteSummary: (text: string) => getNoteSummary(text, i18n.locale),
+ getNoteSummary: (note: misskey.entities.Note) => getNoteSummary(note),
followRequestDone,
groupInviteDone,
notePage,