Migrate cafy to 14.0 (#4240)
This commit is contained in:
parent
b083430011
commit
5aa58da918
77 changed files with 334 additions and 345 deletions
|
@ -25,7 +25,7 @@ export const meta = {
|
|||
|
||||
params: {
|
||||
folderId: {
|
||||
validator: $.type(ID).optional.nullable,
|
||||
validator: $.optional.nullable.type(ID),
|
||||
transform: transform,
|
||||
default: null as any,
|
||||
desc: {
|
||||
|
@ -34,7 +34,7 @@ export const meta = {
|
|||
},
|
||||
|
||||
isSensitive: {
|
||||
validator: $.or($.bool, $.str).optional,
|
||||
validator: $.optional.or($.bool, $.str),
|
||||
default: false,
|
||||
transform: (v: any): boolean => v === true || v === 'true',
|
||||
desc: {
|
||||
|
@ -44,7 +44,7 @@ export const meta = {
|
|||
},
|
||||
|
||||
force: {
|
||||
validator: $.or($.bool, $.str).optional,
|
||||
validator: $.optional.or($.bool, $.str),
|
||||
default: false,
|
||||
transform: (v: any): boolean => v === true || v === 'true',
|
||||
desc: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue