Last active
April 23, 2019 11:44
-
-
Save akrantz/a936070c283e77625f668718ae001804 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: functions - return type (implicit) | |
| description: '' | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsBoolean() { | |
| return true; | |
| } | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsNumber() { | |
| return 5; | |
| } | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsString() { | |
| return "abc"; | |
| } | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsObject() { | |
| return {}; | |
| } | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsMatrixBoolean() { | |
| return [[true]]; | |
| } | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsMatrixNumber() { | |
| return [[5]]; | |
| } | |
| /** | |
| * @customfunction | |
| */ | |
| function returnsMatrixString() { | |
| return [["abc"]]; | |
| } | |
| language: typescript | |
| libraries: | | |
| https://appsforoffice.microsoft.com/lib/1/hosted/office.js | |
| @types/office-js | |
| [email protected]/dist/css/fabric.min.css | |
| [email protected]/dist/css/fabric.components.min.css | |
| [email protected]/client/core.min.js | |
| @types/core-js | |
| @microsoft/[email protected]/dist/office.helpers.min.js | |
| @microsoft/[email protected]/dist/office.helpers.d.ts | |
| [email protected] | |
| @types/[email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment