1
0
forked from mirror/misskey

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: {
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: {