File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
website/cue/reference/remap/functions Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ remap: functions: assert: {
3737 internal_failure_reasons : [
3838 " `condition` evaluates to `false`. " ,
3939 ]
40- return : types : [" null " ]
40+ return : types : [" boolean " ]
4141
4242 examples : [
4343 {
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ remap: functions: del: {
3636 """ ,
3737 ]
3838 return : {
39- types : [" any " ]
39+ types : [" any " , " null " ]
4040 rules : [
4141 " Returns the value of the field being deleted. Returns `null` if the field doesn't exist. " ,
4242 ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ remap: functions: parse_int: {
3030 " The base is not between 2 and 36. " ,
3131 " The number cannot be parsed in the base. " ,
3232 ]
33- return : types : [" string " ]
33+ return : types : [" integer " ]
3434
3535 examples : [
3636 {
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ remap: functions: slice: {
3232 },
3333 ]
3434 internal_failure_reasons : []
35- return : types : [" string " ]
35+ return : types : [" array " , " string " ]
3636
3737 examples : [
3838 {
You can’t perform that action at this time.
0 commit comments