refactor type

This commit is contained in:
syuilo 2021-06-08 14:14:58 +09:00
parent dceb64944c
commit fcb1d4f8c5
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: {