Skip to content

Instantly share code, notes, and snippets.

@akrantz
Last active April 23, 2019 11:44
Show Gist options
  • Select an option

  • Save akrantz/a936070c283e77625f668718ae001804 to your computer and use it in GitHub Desktop.

Select an option

Save akrantz/a936070c283e77625f668718ae001804 to your computer and use it in GitHub Desktop.
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