Improve type definitions
This commit is contained in:
@ -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: '作成した投稿'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user