1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-28 23:08:17 +09:00

refactor type

This commit is contained in:
syuilo 2021-06-08 14:14:58 +09:00
parent 6b312f755e
commit 56600ba1df
12 changed files with 19 additions and 19 deletions

View File

@ -14,12 +14,12 @@ export const meta = {
params: { params: {
query: { query: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any default: null
}, },
host: { host: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any default: null
}, },
limit: { limit: {

View File

@ -14,7 +14,7 @@ export const meta = {
params: { params: {
query: { query: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any default: null
}, },
limit: { limit: {

View File

@ -17,12 +17,12 @@ export const meta = {
level: { level: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any default: null
}, },
domain: { domain: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any default: null
} }
}, },

View File

@ -26,7 +26,7 @@ export const meta = {
// TODO: Check it is valid url // TODO: Check it is valid url
callbackUrl: { callbackUrl: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any, default: null,
}, },
}, },

View File

@ -27,7 +27,7 @@ export const meta = {
folderId: { folderId: {
validator: $.optional.nullable.type(ID), validator: $.optional.nullable.type(ID),
default: null as any, default: null,
}, },
type: { type: {

View File

@ -24,12 +24,12 @@ export const meta = {
params: { params: {
folderId: { folderId: {
validator: $.optional.nullable.type(ID), validator: $.optional.nullable.type(ID),
default: null as any, default: null,
}, },
name: { name: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any, default: null,
}, },
isSensitive: { isSensitive: {

View File

@ -17,7 +17,7 @@ export const meta = {
folderId: { folderId: {
validator: $.optional.nullable.type(ID), validator: $.optional.nullable.type(ID),
default: null as any, default: null,
}, },
}, },

View File

@ -26,7 +26,7 @@ export const meta = {
folderId: { folderId: {
validator: $.optional.nullable.type(ID), validator: $.optional.nullable.type(ID),
default: null as any, default: null,
}, },
isSensitive: { isSensitive: {
@ -36,12 +36,12 @@ export const meta = {
comment: { comment: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any, default: null,
}, },
marker: { marker: {
validator: $.optional.nullable.str, validator: $.optional.nullable.str,
default: null as any, default: null,
}, },
force: { force: {

View File

@ -27,7 +27,7 @@ export const meta = {
folderId: { folderId: {
validator: $.optional.nullable.type(ID), validator: $.optional.nullable.type(ID),
default: null as any, default: null,
} }
}, },

View File

@ -17,7 +17,7 @@ export const meta = {
parentId: { parentId: {
validator: $.optional.nullable.type(ID), validator: $.optional.nullable.type(ID),
default: null as any, default: null,
}, },
}, },

View File

@ -50,7 +50,7 @@ export const meta = {
&& length(text.trim()) <= maxNoteTextLength && length(text.trim()) <= maxNoteTextLength
&& Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit && Array.from(text.trim()).length <= DB_MAX_NOTE_TEXT_LENGTH // DB limit
), ),
default: null as any, default: null,
}, },
cw: { cw: {

View File

@ -23,12 +23,12 @@ export const meta = {
reply: { reply: {
validator: $.optional.nullable.bool, validator: $.optional.nullable.bool,
default: null as any, default: null,
}, },
renote: { renote: {
validator: $.optional.nullable.bool, validator: $.optional.nullable.bool,
default: null as any, default: null,
}, },
withFiles: { withFiles: {
@ -37,7 +37,7 @@ export const meta = {
poll: { poll: {
validator: $.optional.nullable.bool, validator: $.optional.nullable.bool,
default: null as any, default: null,
}, },
sinceId: { sinceId: {