Improve type definitions

This commit is contained in:
syuilo
2019-02-24 09:45:27 +09:00
parent 76edcdbe45
commit b679163d01
7 changed files with 110 additions and 73 deletions

View File

@ -1,6 +1,7 @@
import $ from 'cafy';
import define from '../../define';
import notesChart from '../../../../services/chart/notes';
import notesChart, { notesLogSchema } from '../../../../services/chart/notes';
import { convertLog } from '../../../../services/chart';
export const meta = {
stability: 'stable',
@ -28,12 +29,7 @@ export const meta = {
},
},
res: {
type: 'array',
items: {
type: 'object',
},
},
res: convertLog(notesLogSchema),
};
export default define(meta, async (ps) => {

View File

@ -175,12 +175,10 @@ export const meta = {
res: {
type: 'object',
props: {
properties: {
createdNote: {
type: 'Note',
desc: {
'ja-JP': '作成した投稿'
}
description: '作成した投稿'
}
}
},