Skip to content

Commit 29a98b2

Browse files
Added cases for returType.Exists in exp_lists and exp_maps
1 parent d858646 commit 29a98b2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/exp_lists.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ function getListType (type, returnType, isMulti) {
4747
expected = exp.type.LIST
4848
}
4949
break
50+
case lists.returnType.EXISTS:
51+
expected = exp.type.BOOL
52+
break
5053
case lists.returnType.NONE:
5154
default:
5255
throw new TypeError('either set the return type as auto or match with return object data type')

lib/exp_maps.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ function getMapType (type, returnType, isMulti) {
3333
expected = exp.type.LIST
3434
}
3535
break
36+
case maps.returnType.EXISTS:
37+
expected = exp.type.BOOL
38+
break
3639
case maps.returnType.KEY_VALUE:
3740
case maps.returnType.ORDERED_MAP:
3841
case maps.returnType.UNORDERED_MAP:

0 commit comments

Comments
 (0)