* cleanup(`ApImageService.ts`)
* refactor(`ApImageService.ts`)
* cleanup(`check-https.ts`)
* cleanup(`ApMentionService.ts`)
* refactor(`ApMentionService.ts`)
* cleanup(`ApNoteService.ts`): unneeded `eslint-disable-next-line`
* cleanup(`ApNoteService.ts`)
* WIP(`ApImageService.ts`): `image.url`を`getApHrefNullable()`に通すかどうか悩んでいる
* refactor(`ApNoteService.ts`): function return type
* cleanup(`ApNoteService.ts`): deadcode
* refactor(`ApNoteService.ts`): `eslint-disable-next-line`
* refactor(`ApNoteService.ts`): non-null assertion
これまでは`getApId()`の方でエラーがスローされていた。
* cleanup(`ApNoteService.ts`): unneeded await
* refactor(`ApNoteService.ts`): note.attachment
- `toArray()`を使うように
- よくわからない条件式を整理
- `as`をなくすために`promiseLimit()`でジェネリクスを使うように
* cleanup(`ApNoteService.ts`)
* refactor(`ApNoteService.ts`): よりよい型定義
`res`が`null`でないことは確認されているようだったので`null`とのunionはなくした
* refactor(`ApNoteService.ts`): 不要な条件を削除
* cleanup(`ApNoteService.ts`)
* cleanup(`ApNoteService.ts`): 重要でない`as`を削除
* refactor(`ApNoteService.ts`): `eslint-disable-next-line`
* cleanup(`ApNoteService.ts`): deadcode
* cleanup(`ApNoteService.ts`): unneeded non-null assertion
* refactor(`ApNoteService.ts`): 不要な条件を削除
* WIP(`ApNoteService.ts`): `as`をなくす
エラーメッセージを考える
* cleanup(`ApNoteService.ts`): 不要な`as`を削除
* cleanup(`ApPersonService.ts`): `no-unused-vars`
* cleanup(`ApPersonService.ts`): deadcode
* refactor(`ApPersonService.ts`): function return type
* cleanup(`ApPersonService.ts`): deadcode
* cleanup(`ApPersonService.ts`): deadcode
* WIP(`ApPersonService.ts`): `as`を調整
`null`でないか確認する処理が続いていたので型アサーションは`null`とのunionにした。
より本質的な改善の余地があるように感じるのでひとまずWIPとしてコミット。
* refactor(`ApPersonService.ts`): `eslint-disable-next-line`
* WIP(`ApPersonService.ts`): `as any`をなくした
エラーをスローするようにせざるを得なかったのでエラーメッセージを考える必要がある。
* WIP(`ApNoteService.ts`): non-null assertion
non-nullアサーションを減らすために事前に存在確認をするようにした。
エラーをスローするようにしたのでメッセージを考えなければならない。
* refactor(`ApNoteService.ts`): non-null assertion -> optional chaining
* refactor(`ApPersonService.ts`): `eslint-disable-next-line`
* refactor(`ApPersonService.ts`): `eslint-disable-next-line`
* refactor(`ApPersonService.ts`): function return type
* refactor(`ApPersonService.ts`): type guardによるnon-null assertionの削除
* WIP(`ApPersonService.ts`): `analyzeAttachments`
- Field型を事前に定義しておくように
- `attachments`が`IObject`だった場合、返り値が`{ fields: [] }`になるようだが構わないのか?
- `toArray()`を通すべきでは?
* Revert "WIP(`ApImageService.ts`): `image.url`を`getApHrefNullable()`に通すかどうか悩んでいる"
This reverts commit
|
||
|---|---|---|
| .. | ||
| backend | ||
| frontend | ||
| misskey-js | ||
| shared | ||
| sw | ||
| meta.json | ||