Use as const

#5089
This commit is contained in:
syuilo 2019-06-27 18:04:09 +09:00
parent 6b897e562a
commit 952789cc1e
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
102 changed files with 853 additions and 966 deletions

View file

@ -10,7 +10,6 @@ import { User } from '../../../../models/entities/user';
import { Users, DriveFiles, Notes } from '../../../../models';
import { DriveFile } from '../../../../models/entities/drive-file';
import { Note } from '../../../../models/entities/note';
import { types, bool } from '../../../../misc/schema';
let maxNoteTextLength = 1000;
@ -175,12 +174,12 @@ export const meta = {
},
res: {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
createdNote: {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
ref: 'Note',
description: '作成した投稿'
}