Improve type definitions
This commit is contained in:
parent
76edcdbe45
commit
b679163d01
7 changed files with 110 additions and 73 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
|
|
@ -175,12 +175,10 @@ export const meta = {
|
|||
|
||||
res: {
|
||||
type: 'object',
|
||||
props: {
|
||||
properties: {
|
||||
createdNote: {
|
||||
type: 'Note',
|
||||
desc: {
|
||||
'ja-JP': '作成した投稿'
|
||||
}
|
||||
description: '作成した投稿'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue