Open kakkokari-gtyih opened 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 40.07%. Comparing base (
567acea
) to head (e612fbf
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
typecheckが落ちてるわね
Schema
のプロパティが足りないっぽい
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/create.ts(36,4): error TS2353: Object literal may only specify known properties, and 'httpStatusCode' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/create.ts(42,4): error TS2353: Object literal may only specify known properties, and 'httpStatusCode' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/create.ts(48,4): error TS2353: Object literal may only specify known properties, and 'httpStatusCode' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/show.ts(34,4): error TS2353: Object literal may only specify known properties, and 'kind' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/update.ts(36,4): error TS2353: Object literal may only specify known properties, and 'httpStatusCode' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/update.ts(42,4): error TS2353: Object literal may only specify known properties, and 'httpStatusCode' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
Error: src/server/api/endpoints/admin/abuse-report/notification-recipient/update.ts(48,4): error TS2353: Object literal may only specify known properties, and 'httpStatusCode' does not exist in type '{ readonly message: string; readonly code: string; readonly id: string; }'.
謎
https://github.com/misskey-dev/misskey/pull/14518#issuecomment-2334331977 は普通に型定義が足りてなかったみたい
What
全エンドポイントのmetaとparamDefにsatisfiesを追加
Why
metaとかparamDefを書くときに補完が効くようになる
Additional info (optional)
正規表現で一括置き換えしたのでミスがあるかも
Checklist