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: {
query: {
validator: $.optional.nullable.str,
default: null as any
default: null
},
host: {
validator: $.optional.nullable.str,
default: null as any
default: null
},
limit: {

View file

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

View file

@ -17,12 +17,12 @@ export const meta = {
level: {
validator: $.optional.nullable.str,
default: null as any
default: null
},
domain: {
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
callbackUrl: {
validator: $.optional.nullable.str,
default: null as any,
default: null,
},
},

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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