mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
31 lines
892 B
TypeScript
31 lines
892 B
TypeScript
// Type definitions for Custom Functions
|
|
// Project: http://dev.office.com
|
|
// Definitions by: OfficeDev <https://github.com/OfficeDev>, Michael Zlatkovsky <https://github.com/Zlatkovsky>, Michelle Scharlock <https://github.com/mscharlock>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.4
|
|
|
|
/*
|
|
office-js
|
|
Copyright (c) Microsoft Corporation
|
|
*/
|
|
|
|
declare const CustomFunctionMappings: { [key: string]: Function };
|
|
|
|
declare namespace CustomFunctions {
|
|
interface StreamingHandler<T> extends CancelableHandler {
|
|
/*
|
|
* Sets the returned result for a streaming custom function.
|
|
* @beta
|
|
*/
|
|
setResult: (value: T) => void;
|
|
}
|
|
|
|
interface CancelableHandler {
|
|
/*
|
|
* Handles what should occur when a custom function is canceled.
|
|
* @beta
|
|
*/
|
|
onCanceled: () => void;
|
|
}
|
|
}
|