Skip to content

Commit

Permalink
fix expression version and suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicshuai committed Apr 10, 2020
1 parent 9f2c161 commit 0e92626
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
},
"dependencies": {
"@bfc/indexers": "*",
"adaptive-expressions": "^4.8.0-preview-110700",
"botbuilder-lg": "^4.9.0-preview-117748",
"request-light": "^0.2.2",
"vscode-languageserver": "^5.3.0-next"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,31 @@ export const buildInfunctionsMap: Map<string, FunctionEntity> = new Map<string,
),
],

//type checing functions
[
'isInteger',
new FunctionEntity(['input: any'], ReturnType.Boolean, 'determine whether a given input is an integer number.'),
],
[
'isFloat',
new FunctionEntity(['input: any'], ReturnType.Boolean, 'determine whether a given input is a float point number.'),
],
[
'isBoolean',
new FunctionEntity(['input: any'], ReturnType.Boolean, 'determine whether a given input is a boolean.'),
],
['isArray', new FunctionEntity(['input: any'], ReturnType.Boolean, 'determine whether a given input is an array.')],
['isObject', new FunctionEntity(['input: any'], ReturnType.Boolean, 'determine whether a given input is an object.')],
[
'isDateTime',
new FunctionEntity(
['input: any'],
ReturnType.Boolean,
'determine whether a given input is a UTC ISO format timestamp.'
),
],
['isString', new FunctionEntity(['input: any'], ReturnType.Boolean, 'determine whether a given input is a string.')],

// Functions injected from LG library
// https://github.com/microsoft/BotBuilder-Samples/blob/master/experimental/language-generation/docs/Functions-injected-from-LG.md
[
Expand Down

0 comments on commit 0e92626

Please sign in to comment.