Skip to content

Commit b1ba5c3

Browse files
fix(website): VRL functions return types
1 parent d5dbab9 commit b1ba5c3

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

website/cue/reference/remap/functions/assert.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

website/cue/reference/remap/functions/del.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
]

website/cue/reference/remap/functions/parse_int.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

website/cue/reference/remap/functions/slice.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)