summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints/drive/stream.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-06-27 18:04:09 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-06-27 18:04:09 +0900
commit952789cc1eb77e2f2d54b489c016b56bac812ab7 (patch)
tree47aae1704f1617f9ae081291547085ba04677a2e /src/server/api/endpoints/drive/stream.ts
parent11.23.1 (diff)
downloadsharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.tar.gz
sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.tar.bz2
sharkey-952789cc1eb77e2f2d54b489c016b56bac812ab7.zip
Use as const
#5089
Diffstat (limited to 'src/server/api/endpoints/drive/stream.ts')
-rw-r--r--src/server/api/endpoints/drive/stream.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/server/api/endpoints/drive/stream.ts b/src/server/api/endpoints/drive/stream.ts
index f75c4273c3..b93ee11a14 100644
--- a/src/server/api/endpoints/drive/stream.ts
+++ b/src/server/api/endpoints/drive/stream.ts
@@ -3,7 +3,6 @@ import { ID } from '../../../../misc/cafy-id';
import define from '../../define';
import { DriveFiles } from '../../../../models';
import { makePaginationQuery } from '../../common/make-pagination-query';
-import { types, bool } from '../../../../misc/schema';
export const meta = {
tags: ['drive'],
@@ -32,11 +31,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: 'DriveFile',
}
},