From fcc6a65e08e502fb11e9603aabfa237dd82d4b25 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 24 Feb 2019 18:13:11 +0900 Subject: Improve doc --- src/server/api/endpoints/i/notifications.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/server/api/endpoints/i/notifications.ts') diff --git a/src/server/api/endpoints/i/notifications.ts b/src/server/api/endpoints/i/notifications.ts index 3d038e5d34..d3e3064abd 100644 --- a/src/server/api/endpoints/i/notifications.ts +++ b/src/server/api/endpoints/i/notifications.ts @@ -54,7 +54,14 @@ export const meta = { validator: $.optional.arr($.str.or(['follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'poll_vote', 'receiveFollowRequest'])), default: [] as string[] } - } + }, + + res: { + type: 'array', + items: { + type: 'Notification', + }, + }, }; export default define(meta, async (ps, user) => { -- cgit v1.2.3-freya