mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-01-12 22:46:38 +08:00
Added codeowners and updated comments in custom-functions-runtime (#29482)
* added codeowners and updated comments in CF-runtime * fixing whitespace issues
This commit is contained in:
4
.github/CODEOWNERS
vendored
4
.github/CODEOWNERS
vendored
@@ -725,6 +725,7 @@
|
||||
/types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender @ErikSchierboom
|
||||
/types/currency-formatter/ @mhegazy @davidmpaz
|
||||
/types/custom-error-generator/ @thmiceli
|
||||
/types/custom-functions-runtime/ @OfficeDev @Zlatkovsky @mscharlock @kbrandl
|
||||
/types/cwise/ @taoqf
|
||||
/types/cwise-compiler/ @taoqf
|
||||
/types/cwise-parser/ @taoqf
|
||||
@@ -3132,7 +3133,8 @@
|
||||
/types/oclazyload/ @rolandzwaga
|
||||
/types/odata/ @janhommes @jcchalte
|
||||
/types/ofe/ @Morfent
|
||||
/types/office-js/ @OfficeDev @LanceEA @Zlatkovsky @kbrandl @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT
|
||||
/types/office-js/ @OfficeDev @LanceEA @Zlatkovsky @kbrandl @Rick-Kirkham @AlexJerabek @ElizabethSamuel-MSFT @mscharlock
|
||||
/types/office-runtime/ @OfficeDev @mscharlock @kbrandl @Zlatkovsky
|
||||
/types/offline-js/ @cgwrench
|
||||
/types/oibackoff/ @geoffreak
|
||||
/types/oidc-token-manager/ @rosieks
|
||||
|
||||
@@ -3,7 +3,7 @@ function addTen(n: number) {
|
||||
return n + 10;
|
||||
}
|
||||
|
||||
/*Assume that the function id for addTen in the function's JSON metadata is specified as ADDTEN. */
|
||||
/* Assume that the function id for addTen in the function's JSON metadata is specified as ADDTEN. */
|
||||
CustomFunctionMappings.ADDTEN = addTen;
|
||||
|
||||
async function getStockValues(ticker: string): Promise<number> {
|
||||
|
||||
13
types/custom-functions-runtime/index.d.ts
vendored
13
types/custom-functions-runtime/index.d.ts
vendored
@@ -10,15 +10,24 @@ Copyright (c) Microsoft Corporation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Specific to Excel Custom Functions. Enables you to set key-value pairs (a function's JSON id : JavaScript name).
|
||||
* Specific to Excel Custom Functions.
|
||||
* Enables you to set key-value pairs which map
|
||||
* a function's id in the JSON metadata to the JS function name.
|
||||
* @beta
|
||||
*/
|
||||
declare let CustomFunctionMappings: { [key: string]: Function };
|
||||
/**
|
||||
* CustomFunctions namespace, used by Excel Custom Functions
|
||||
* @beta
|
||||
*/
|
||||
declare namespace CustomFunctions {
|
||||
/**
|
||||
* StreamingHandler interface
|
||||
* A handler passed automatically as the last parameter
|
||||
* to a streaming function. With this parameter, a
|
||||
* function can use handler.setResult to set a cell value
|
||||
* or hook into the handler.onCanceled event to
|
||||
* to handle what happens when the function stops streaming.
|
||||
* @beta
|
||||
*/
|
||||
interface StreamingHandler<T> extends CancelableHandler {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user