diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2019-06-27 18:04:09 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2019-06-27 18:04:09 +0900 |
| commit | 952789cc1eb77e2f2d54b489c016b56bac812ab7 (patch) | |
| tree | 47aae1704f1617f9ae081291547085ba04677a2e /src/server/api/endpoints/notes/featured.ts | |
| parent | 11.23.1 (diff) | |
| download | sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.tar.gz sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.tar.bz2 sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.zip | |
Use as const
#5089
Diffstat (limited to 'src/server/api/endpoints/notes/featured.ts')
| -rw-r--r-- | src/server/api/endpoints/notes/featured.ts | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/api/endpoints/notes/featured.ts b/src/server/api/endpoints/notes/featured.ts index 64750815b0..0a1d8668b0 100644 --- a/src/server/api/endpoints/notes/featured.ts +++ b/src/server/api/endpoints/notes/featured.ts @@ -2,7 +2,6 @@ import $ from 'cafy'; import define from '../../define'; import { generateMuteQuery } from '../../common/generate-mute-query'; import { Notes } from '../../../../models'; -import { types, bool } from '../../../../misc/schema'; export const meta = { desc: { @@ -25,11 +24,11 @@ export const meta = { }, res: { - type: types.array, - optional: bool.false, nullable: bool.false, + type: 'array' as const, + optional: false as const, nullable: false as const, items: { - type: types.object, - optional: bool.false, nullable: bool.false, + type: 'object' as const, + optional: false as const, nullable: false as const, ref: 'Note', } }, |