Use as const

#5089
This commit is contained in:
syuilo
2019-06-27 18:04:09 +09:00
parent 6b897e562a
commit 952789cc1e
102 changed files with 853 additions and 966 deletions

View File

@@ -1,19 +1,17 @@
import { types, bool } from '../../../../misc/schema';
export const logSchema = {
/**
* フォローしている
*/
followings: {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
/**
* フォローしている合計
*/
total: {
type: types.number,
optional: bool.false, nullable: bool.false,
type: 'number' as const,
optional: false as const, nullable: false as const,
description: 'フォローしている合計',
},
@@ -21,8 +19,8 @@ export const logSchema = {
* フォローした数
*/
inc: {
type: types.number,
optional: bool.false, nullable: bool.false,
type: 'number' as const,
optional: false as const, nullable: false as const,
description: 'フォローした数',
},
@@ -30,8 +28,8 @@ export const logSchema = {
* フォロー解除した数
*/
dec: {
type: types.number,
optional: bool.false, nullable: bool.false,
type: 'number' as const,
optional: false as const, nullable: false as const,
description: 'フォロー解除した数',
},
}
@@ -41,15 +39,15 @@ export const logSchema = {
* フォローされている
*/
followers: {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
/**
* フォローされている合計
*/
total: {
type: types.number,
optional: bool.false, nullable: bool.false,
type: 'number' as const,
optional: false as const, nullable: false as const,
description: 'フォローされている合計',
},
@@ -57,8 +55,8 @@ export const logSchema = {
* フォローされた数
*/
inc: {
type: types.number,
optional: bool.false, nullable: bool.false,
type: 'number' as const,
optional: false as const, nullable: false as const,
description: 'フォローされた数',
},
@@ -66,8 +64,8 @@ export const logSchema = {
* フォロー解除された数
*/
dec: {
type: types.number,
optional: bool.false, nullable: bool.false,
type: 'number' as const,
optional: false as const, nullable: false as const,
description: 'フォロー解除された数',
},
}
@@ -75,17 +73,17 @@ export const logSchema = {
};
export const schema = {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: {
local: {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: logSchema
},
remote: {
type: types.object,
optional: bool.false, nullable: bool.false,
type: 'object' as const,
optional: false as const, nullable: false as const,
properties: logSchema
},
}