forked from mirrors/misskey
refactor(frontend): フロントエンドの型エラー解消(途中まで) (#16539)
* fix(frontend): FormLinkをボタンとして使用した際にエラーが出る問題を修正 * refactor(frontend): フロントエンドの型エラー解消 * remove unused ts-expect-error * migrate * remove unrelated changes * fix lint * more type fixes
This commit is contained in:
@@ -112,8 +112,7 @@ async function init() {
|
||||
...(visibleUserIds ? visibleUserIds.split(',').map(userId => ({ userId })) : []),
|
||||
...(visibleAccts ? visibleAccts.split(',').map(Misskey.acct.parse) : []),
|
||||
]
|
||||
// TypeScriptの指示通りに変換する
|
||||
.map(q => 'username' in q ? { username: q.username, host: q.host === null ? undefined : q.host } : q)
|
||||
// @ts-expect-error payloadの引数側の型が正常に解決されない
|
||||
.map(q => misskeyApi('users/show', q)
|
||||
.then(user => {
|
||||
visibleUsers.value.push(user);
|
||||
|
||||
Reference in New Issue
Block a user