diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-12-18 14:56:35 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-12-18 14:56:35 +0900 |
| commit | f607faef0b23c547cde83f9bb44d0038736654bd (patch) | |
| tree | 96e1cdef65cf654cdba1b8d8de8308e75471bfa7 /packages/client/src | |
| parent | improve(client): show reload tip (diff) | |
| download | misskey-f607faef0b23c547cde83f9bb44d0038736654bd.tar.gz misskey-f607faef0b23c547cde83f9bb44d0038736654bd.tar.bz2 misskey-f607faef0b23c547cde83f9bb44d0038736654bd.zip | |
refactor(client): improve $i type
Diffstat (limited to 'packages/client/src')
| -rw-r--r-- | packages/client/src/account.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/client/src/account.ts b/packages/client/src/account.ts index ef7eb8f60a..4c83b78c91 100644 --- a/packages/client/src/account.ts +++ b/packages/client/src/account.ts @@ -1,5 +1,6 @@ import { del, get, set } from '@/scripts/idb-proxy'; import { reactive } from 'vue'; +import * as misskey from 'misskey-js'; import { apiUrl } from '@/config'; import { waiting, api, popup, popupMenu, success } from '@/os'; import { unisonReload, reloadChannel } from '@/scripts/unison-reload'; @@ -8,13 +9,7 @@ import { i18n } from './i18n'; // TODO: 他のタブと永続化されたstateを同期 -type Account = { - id: string; - token: string; - isModerator: boolean; - isAdmin: boolean; - isDeleted: boolean; -}; +type Account = misskey.entities.MeDetailed; const data = localStorage.getItem('account'); |