Skip to content

Commit

Permalink
Merge pull request #754 from jamesmelville/if-datatypes
Browse files Browse the repository at this point in the history
Allow appropriate datatypes for IF function
  • Loading branch information
leifg authored Apr 14, 2022
2 parents 55f30f9 + 828b969 commit dad82a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functionDispatcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ const existingFunctions = {
returnType: 'text',
},
if: {
validations: [minNumOfParams(3), maxNumOfParams(3), paramTypes('checkbox', ['text', 'number', 'date', 'datetime'], ['text', 'number', 'date', 'datetime'])],
returnType: ['text', 'number', 'date', 'datetime'],
validations: [minNumOfParams(3), maxNumOfParams(3), paramTypes('checkbox', ['text', 'number', 'date', 'datetime', 'checkbox', 'geolocation'], ['text', 'number', 'date', 'datetime', 'checkbox', 'geolocation'])],
returnType: ['text', 'number', 'date', 'datetime', 'checkbox', 'geolocation'],
},
image: {
validations: [minNumOfParams(2), maxNumOfParams(4), paramTypes('text', 'text', 'number', 'number')],
Expand Down

0 comments on commit dad82a5

Please sign in to comment.