From eb23fd4e608fbcf6ff65ee41375869eeffbc4915 Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 29 Sep 2023 15:01:13 +0900 Subject: [PATCH] update type --- packages/misskey-js/etc/misskey-js.api.md | 9 +++++++++ packages/misskey-js/src/entities.ts | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/packages/misskey-js/etc/misskey-js.api.md b/packages/misskey-js/etc/misskey-js.api.md index d24a0624d0..f0fc47c207 100644 --- a/packages/misskey-js/etc/misskey-js.api.md +++ b/packages/misskey-js/etc/misskey-js.api.md @@ -2622,6 +2622,15 @@ type ModerationLog = { } | { type: 'createInvitation'; info: ModerationLogPayloads['createInvitation']; +} | { + type: 'createAd'; + info: ModerationLogPayloads['createAd']; +} | { + type: 'updateAd'; + info: ModerationLogPayloads['updateAd']; +} | { + type: 'deleteAd'; + info: ModerationLogPayloads['deleteAd']; }); // @public (undocumented) diff --git a/packages/misskey-js/src/entities.ts b/packages/misskey-js/src/entities.ts index 41035ba2bf..e6bac2a5f4 100644 --- a/packages/misskey-js/src/entities.ts +++ b/packages/misskey-js/src/entities.ts @@ -674,4 +674,13 @@ export type ModerationLog = { } | { type: 'createInvitation'; info: ModerationLogPayloads['createInvitation']; +} | { + type: 'createAd'; + info: ModerationLogPayloads['createAd']; +} | { + type: 'updateAd'; + info: ModerationLogPayloads['updateAd']; +} | { + type: 'deleteAd'; + info: ModerationLogPayloads['deleteAd']; });