Skip to content

Commit 38bdf23

Browse files
authored
[office-js] [office-js-preview] (Excel) Add missing beta tags, adjust deprecated note (DefinitelyTyped#73010)
1 parent 4eea60c commit 38bdf23

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

types/office-js-preview/index.d.ts

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25607,8 +25607,10 @@ declare namespace Excel {
2560725607
tooManyCells = "TooManyCells",
2560825608
/**
2560925609
* An error caused by a cell's formula evaluating to a lambda value. Displays as error type #CALC! in Excel.
25610+
*
25611+
* Warning: `lambdaInCell` was deprecated in ExcelApi 1.19.
2561025612
*
25611-
* @deprecated Deprecated since [Api set: ExcelApi 1.19].
25613+
* @deprecated Deprecated since ExcelApi 1.19.
2561225614
*
2561325615
* @remarks
2561425616
* [Api set: ExcelApi 1.16]
@@ -55646,6 +55648,7 @@ declare namespace Excel {
5564655648
*
5564755649
* @remarks
5564855650
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
55651+
* @beta
5564955652
*/
5565055653
class CustomFunctionManager extends OfficeExtension.ClientObject {
5565155654
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
@@ -55654,21 +55657,33 @@ declare namespace Excel {
5565455657
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
5565555658
*
5565655659
* @param propertyNames A comma-delimited string or an array of strings that specify the properties to load.
55660+
*
55661+
* @remarks
55662+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
55663+
* @beta
5565755664
*/
5565855665
load(propertyNames?: string | string[]): Excel.CustomFunctionManager;
5565955666
/**
5566055667
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
5566155668
*
5566255669
* @param propertyNamesAndPaths `propertyNamesAndPaths.select` is a comma-delimited string that specifies the properties to load, and `propertyNamesAndPaths.expand` is a comma-delimited string that specifies the navigation properties to load.
55670+
*
55671+
* @remarks
55672+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
55673+
* @beta
5566355674
*/
5566455675
load(propertyNamesAndPaths?: {
5566555676
select?: string;
5566655677
expand?: string;
5566755678
}): Excel.CustomFunctionManager;
5566855679
/**
55669-
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that's passed to it.)
55670-
* Whereas the original `Excel.CustomFunctionManager` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Excel.Interfaces.CustomFunctionManagerData`) that contains shallow copies of any loaded child properties from the original object.
55671-
*/
55680+
* Overrides the JavaScript `toJSON()` method in order to provide more useful output when an API object is passed to `JSON.stringify()`. (`JSON.stringify`, in turn, calls the `toJSON` method of the object that's passed to it.)
55681+
* Whereas the original `Excel.CustomFunctionManager` object is an API object, the `toJSON` method returns a plain JavaScript object (typed as `Excel.Interfaces.CustomFunctionManagerData`) that contains shallow copies of any loaded child properties from the original object.
55682+
*
55683+
* @remarks
55684+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
55685+
* @beta
55686+
*/
5567255687
toJSON(): Excel.Interfaces.CustomFunctionManagerData;
5567355688
}
5567455689
/**

types/office-js/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24822,8 +24822,10 @@ declare namespace Excel {
2482224822
tooManyCells = "TooManyCells",
2482324823
/**
2482424824
* An error caused by a cell's formula evaluating to a lambda value. Displays as error type #CALC! in Excel.
24825+
*
24826+
* Warning: `lambdaInCell` was deprecated in ExcelApi 1.19.
2482524827
*
24826-
* @deprecated Deprecated since [Api set: ExcelApi 1.19].
24828+
* @deprecated Deprecated since ExcelApi 1.19.
2482724829
*
2482824830
* @remarks
2482924831
* [Api set: ExcelApi 1.16]

0 commit comments

Comments
 (0)