@types/office-js-preview 1.0.667 → 1.0.669
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- office-js-preview/README.md +1 -1
- office-js-preview/index.d.ts +121 -21
- office-js-preview/package.json +2 -2
office-js-preview/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for office-js-preview (https://github.com
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, 01 Dec 2025 20:34:48 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js-preview/index.d.ts
CHANGED
|
@@ -24625,6 +24625,10 @@ declare namespace Office {
|
|
|
24625
24625
|
*
|
|
24626
24626
|
* **Important**
|
|
24627
24627
|
*
|
|
24628
|
+
* - The `errorMessageMarkdown` property is available for preview in Outlook on Mac starting in Version 16.103 (Build 25102433). To test the property, join the
|
|
24629
|
+
* {@link https://techcommunity.microsoft.com/kb/microsoft-365-insider-kb/join-the-microsoft-365-insider-program-on-macos/4401756 | Microsoft 365 Insider program} and
|
|
24630
|
+
* select the **Beta Channel** option to access Office beta builds.
|
|
24631
|
+
*
|
|
24628
24632
|
* - The formatted error message must be 500 characters or less.
|
|
24629
24633
|
*
|
|
24630
24634
|
* - For guidance on supported Markdown elements, see
|
|
@@ -32089,7 +32093,7 @@ declare namespace Excel {
|
|
|
32089
32093
|
* Represents the value of a cell containing a number with a format string. Number format strings must conform to Excel guidelines. To learn more, see {@link https://support.microsoft.com/office/c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5 | Review guidelines for customizing a number format}.
|
|
32090
32094
|
* In this scenario, the format is applied to the value and not to the cell, so the value retains its format string throughout calculation.
|
|
32091
32095
|
*
|
|
32092
|
-
* @deprecated As of
|
|
32096
|
+
* @deprecated As of ExcelApi 1.19, use {@link https://learn.microsoft.com/javascript/api/excel/excel.doublecellvalue | DoubleCellValue} instead.
|
|
32093
32097
|
*
|
|
32094
32098
|
* @remarks
|
|
32095
32099
|
* [Api set: ExcelApi 1.16]
|
|
@@ -32098,7 +32102,7 @@ declare namespace Excel {
|
|
|
32098
32102
|
/**
|
|
32099
32103
|
* Represents the type of this cell value.
|
|
32100
32104
|
*
|
|
32101
|
-
* @deprecated Deprecated since
|
|
32105
|
+
* @deprecated Deprecated since ExcelApi 1.19.
|
|
32102
32106
|
*
|
|
32103
32107
|
* @remarks
|
|
32104
32108
|
* [Api set: ExcelApi 1.16]
|
|
@@ -32107,7 +32111,7 @@ declare namespace Excel {
|
|
|
32107
32111
|
/**
|
|
32108
32112
|
* Represents the value that would be returned by `Range.values` for a cell with this value.
|
|
32109
32113
|
*
|
|
32110
|
-
* @deprecated Deprecated since
|
|
32114
|
+
* @deprecated Deprecated since ExcelApi 1.19.
|
|
32111
32115
|
*
|
|
32112
32116
|
* @remarks
|
|
32113
32117
|
* [Api set: ExcelApi 1.16]
|
|
@@ -32116,7 +32120,7 @@ declare namespace Excel {
|
|
|
32116
32120
|
/**
|
|
32117
32121
|
* Represents the value that would be returned by `Range.valueTypes` for a cell with this value.
|
|
32118
32122
|
*
|
|
32119
|
-
* @deprecated Deprecated since
|
|
32123
|
+
* @deprecated Deprecated since ExcelApi 1.19.
|
|
32120
32124
|
*
|
|
32121
32125
|
* @remarks
|
|
32122
32126
|
* [Api set: ExcelApi 1.16]
|
|
@@ -32128,7 +32132,7 @@ declare namespace Excel {
|
|
|
32128
32132
|
* Number format strings must conform to Excel guidelines.
|
|
32129
32133
|
* To learn more, see {@link https://support.microsoft.com/office/c0a1d1fa-d3f4-4018-96b7-9c9354dd99f5 | Review guidelines for customizing a number format}.
|
|
32130
32134
|
*
|
|
32131
|
-
* @deprecated Deprecated since
|
|
32135
|
+
* @deprecated Deprecated since ExcelApi 1.19.
|
|
32132
32136
|
*
|
|
32133
32137
|
* @remarks
|
|
32134
32138
|
* [Api set: ExcelApi 1.16]
|
|
@@ -34621,10 +34625,17 @@ declare namespace Excel {
|
|
|
34621
34625
|
}
|
|
34622
34626
|
/**
|
|
34623
34627
|
*
|
|
34624
|
-
* Creates and opens a new workbook.
|
|
34625
|
-
*
|
|
34626
|
-
|
|
34627
|
-
*
|
|
34628
|
+
* Creates and opens a new workbook. Optionally, the workbook can be pre-populated
|
|
34629
|
+
* with a Base64-encoded .xlsx file.
|
|
34630
|
+
|
|
34631
|
+
* Note: Macros can be a security risk. If this API is used to create a workbook that
|
|
34632
|
+
* includes a macro, the add-in user will be prompted with a "Trust this add-in?" dialog
|
|
34633
|
+
* in the Excel UI. The user must select the "Trust add-in" button to proceed.
|
|
34634
|
+
*
|
|
34635
|
+
* Note: The `extensionHardening` Windows registry key affects the `base64File` param.
|
|
34636
|
+
* The file extension defined by the param must match the real file type of the file.
|
|
34637
|
+
* If `extensionHardening` is set to deny mismatches and the file extension does not match the real file type, this API throws the following error:
|
|
34638
|
+
* "This operation is not allowed due to the extension hardening policy."
|
|
34628
34639
|
* [Api set: ExcelApi 1.8]
|
|
34629
34640
|
*
|
|
34630
34641
|
* @param base64File Optional. The Base64-encoded .xlsx file. The default value is null.
|
|
@@ -34796,11 +34807,11 @@ declare namespace Excel {
|
|
|
34796
34807
|
class RequestContext extends OfficeCore.RequestContext {
|
|
34797
34808
|
constructor(url?: string | Session, invocation?: {
|
|
34798
34809
|
invocationId: number;
|
|
34799
|
-
|
|
34810
|
+
isInSyncExecution: boolean;
|
|
34800
34811
|
});
|
|
34801
34812
|
setInvocation(invocation: {
|
|
34802
34813
|
invocationId: number;
|
|
34803
|
-
|
|
34814
|
+
isInSyncExecution: boolean;
|
|
34804
34815
|
}): void;
|
|
34805
34816
|
readonly workbook: Workbook;
|
|
34806
34817
|
readonly application: Application;
|
|
@@ -34823,7 +34834,6 @@ declare namespace Excel {
|
|
|
34823
34834
|
*
|
|
34824
34835
|
* When false, each `context.sync()` call creates an undo record.
|
|
34825
34836
|
* When true, all `context.sync()` calls in a single `Excel.run` are merged into one `undo` group.
|
|
34826
|
-
*
|
|
34827
34837
|
* @remarks
|
|
34828
34838
|
* [Api set: ExcelApi 1.20]
|
|
34829
34839
|
*/
|
|
@@ -39856,6 +39866,66 @@ declare namespace Excel {
|
|
|
39856
39866
|
*/
|
|
39857
39867
|
toJSON(): Excel.Interfaces.IterativeCalculationData;
|
|
39858
39868
|
}
|
|
39869
|
+
/**
|
|
39870
|
+
* Specifies the type of autorun event.
|
|
39871
|
+
*
|
|
39872
|
+
* @remarks
|
|
39873
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39874
|
+
* @beta
|
|
39875
|
+
*/
|
|
39876
|
+
enum AutorunEventType {
|
|
39877
|
+
/**
|
|
39878
|
+
* The autorun event type is unknown.
|
|
39879
|
+
* @remarks
|
|
39880
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39881
|
+
*/
|
|
39882
|
+
unknown = "Unknown",
|
|
39883
|
+
/**
|
|
39884
|
+
* The autorun event type is triggered when the document is saved.
|
|
39885
|
+
* @remarks
|
|
39886
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39887
|
+
*/
|
|
39888
|
+
onDocumentSave = "OnDocumentSave",
|
|
39889
|
+
/**
|
|
39890
|
+
* The autorun event type is triggered when the document is saved as a new file.
|
|
39891
|
+
* @remarks
|
|
39892
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39893
|
+
*/
|
|
39894
|
+
onDocumentSaveAs = "OnDocumentSaveAs"
|
|
39895
|
+
}
|
|
39896
|
+
/**
|
|
39897
|
+
* Specifies the options for completing an autorun event.
|
|
39898
|
+
*
|
|
39899
|
+
* @remarks
|
|
39900
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39901
|
+
* @beta
|
|
39902
|
+
*/
|
|
39903
|
+
interface AutorunEventCompletedOptions {
|
|
39904
|
+
/**
|
|
39905
|
+
* Specifies whether to allow the event to proceed. The default value is `false`.
|
|
39906
|
+
*
|
|
39907
|
+
* @remarks
|
|
39908
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39909
|
+
* @beta
|
|
39910
|
+
*/
|
|
39911
|
+
allowEvent: boolean;
|
|
39912
|
+
/**
|
|
39913
|
+
* Specifies the type of autorun event to be completed if allowed. The default value is `unknown`.
|
|
39914
|
+
*
|
|
39915
|
+
* @remarks
|
|
39916
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39917
|
+
* @beta
|
|
39918
|
+
*/
|
|
39919
|
+
autorunEventType: Excel.AutorunEventType | "Unknown" | "OnDocumentSave" | "OnDocumentSaveAs";
|
|
39920
|
+
/**
|
|
39921
|
+
* If provided, specifies an optional error message if the event isn't allowed to proceed. The default value is "" (empty string).
|
|
39922
|
+
*
|
|
39923
|
+
* @remarks
|
|
39924
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
39925
|
+
* @beta
|
|
39926
|
+
*/
|
|
39927
|
+
message?: string;
|
|
39928
|
+
}
|
|
39859
39929
|
/**
|
|
39860
39930
|
* Workbook is the top level object which contains related workbook objects such as worksheets, tables, and ranges.
|
|
39861
39931
|
To learn more about the workbook object model, read {@link https://learn.microsoft.com/office/dev/add-ins/excel/excel-add-ins-workbooks | Work with workbooks using the Excel JavaScript API}.
|
|
@@ -40135,6 +40205,16 @@ declare namespace Excel {
|
|
|
40135
40205
|
set(properties: Interfaces.WorkbookUpdateData, options?: OfficeExtension.UpdateOptions): void;
|
|
40136
40206
|
/** Sets multiple properties on the object at the same time, based on an existing loaded object. */
|
|
40137
40207
|
set(properties: Excel.Workbook): void;
|
|
40208
|
+
/**
|
|
40209
|
+
* Notifies the host application that the add-in's code has finished running in an autorun event.
|
|
40210
|
+
*
|
|
40211
|
+
* @remarks
|
|
40212
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
40213
|
+
* @beta
|
|
40214
|
+
*
|
|
40215
|
+
* @param AutorunEventCompletedOptions Required. Options for completing the autorun event.
|
|
40216
|
+
*/
|
|
40217
|
+
autorunEventCompleted(AutorunEventCompletedOptions: Excel.AutorunEventCompletedOptions): void;
|
|
40138
40218
|
/**
|
|
40139
40219
|
* Close current workbook.
|
|
40140
40220
|
*
|
|
@@ -40154,8 +40234,7 @@ declare namespace Excel {
|
|
|
40154
40234
|
*/
|
|
40155
40235
|
close(closeBehavior?: "Save" | "SkipSave"): void;
|
|
40156
40236
|
/**
|
|
40157
|
-
* Sets focus on the workbook. This
|
|
40158
|
-
to receive keyboard events.
|
|
40237
|
+
* Sets focus on the workbook. This causes the Excel grid or the currently active object to receive keyboard events.
|
|
40159
40238
|
*
|
|
40160
40239
|
* @remarks
|
|
40161
40240
|
* [Api set: ExcelApiDesktop 1.1]
|
|
@@ -40250,7 +40329,10 @@ declare namespace Excel {
|
|
|
40250
40329
|
getSelectedRanges(): Excel.RangeAreas;
|
|
40251
40330
|
/**
|
|
40252
40331
|
* Inserts the specified worksheets from a source workbook into the current workbook.
|
|
40253
|
-
|
|
40332
|
+
|
|
40333
|
+
The `extensionHardening` Windows registry key affects this API. The file extension defined by the `base64File` param must match the real file type of the inserted file. If `extensionHardening` is set to deny mismatches and the file extension does not match the real file type, this API throws the following error: "This operation is not allowed due to the extension hardening policy."
|
|
40334
|
+
|
|
40335
|
+
**Note**: This API is currently only supported for Office on Windows, Mac, and the web.
|
|
40254
40336
|
*
|
|
40255
40337
|
* @remarks
|
|
40256
40338
|
* [Api set: ExcelApi 1.13]
|
|
@@ -45286,35 +45368,35 @@ declare namespace Excel {
|
|
|
45286
45368
|
*/
|
|
45287
45369
|
enum TableSource {
|
|
45288
45370
|
/**
|
|
45289
|
-
*
|
|
45371
|
+
* An external data source, such as Microsoft SharePoint Foundation.
|
|
45290
45372
|
* @remarks
|
|
45291
45373
|
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
45292
45374
|
* @beta
|
|
45293
45375
|
*/
|
|
45294
45376
|
external = "External",
|
|
45295
45377
|
/**
|
|
45296
|
-
*
|
|
45378
|
+
* A range object in this worksheet.
|
|
45297
45379
|
* @remarks
|
|
45298
45380
|
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
45299
45381
|
* @beta
|
|
45300
45382
|
*/
|
|
45301
45383
|
range = "Range",
|
|
45302
45384
|
/**
|
|
45303
|
-
* XML data source.
|
|
45385
|
+
* An XML data source.
|
|
45304
45386
|
* @remarks
|
|
45305
45387
|
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
45306
45388
|
* @beta
|
|
45307
45389
|
*/
|
|
45308
45390
|
xml = "Xml",
|
|
45309
45391
|
/**
|
|
45310
|
-
* Query data source.
|
|
45392
|
+
* A Power Query query data source.
|
|
45311
45393
|
* @remarks
|
|
45312
45394
|
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
45313
45395
|
* @beta
|
|
45314
45396
|
*/
|
|
45315
45397
|
query = "Query",
|
|
45316
45398
|
/**
|
|
45317
|
-
* Power Pivot model.
|
|
45399
|
+
* A Power Pivot model.
|
|
45318
45400
|
* @remarks
|
|
45319
45401
|
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
45320
45402
|
* @beta
|
|
@@ -66330,7 +66412,13 @@ declare namespace Excel {
|
|
|
66330
66412
|
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
66331
66413
|
* @beta
|
|
66332
66414
|
*/
|
|
66333
|
-
externalCodeServiceDiffResultReceived = "ExternalCodeServiceDiffResultReceived"
|
|
66415
|
+
externalCodeServiceDiffResultReceived = "ExternalCodeServiceDiffResultReceived",
|
|
66416
|
+
/**
|
|
66417
|
+
* AugmentationLoopUploadStatusChanged represents the type of event registered when the upload status of the augmentation loop changes.
|
|
66418
|
+
* @remarks
|
|
66419
|
+
* [Api set: ExcelApi BETA (PREVIEW ONLY)]
|
|
66420
|
+
*/
|
|
66421
|
+
augmentationLoopUploadStatusChanged = "AugmentationLoopUploadStatusChanged"
|
|
66334
66422
|
}
|
|
66335
66423
|
/**
|
|
66336
66424
|
* @remarks
|
|
@@ -69272,6 +69360,7 @@ declare namespace Excel {
|
|
|
69272
69360
|
content: string;
|
|
69273
69361
|
/**
|
|
69274
69362
|
* Specifies the height of the note.
|
|
69363
|
+
* Note: This property is not supported in Excel on the web.
|
|
69275
69364
|
*
|
|
69276
69365
|
* @remarks
|
|
69277
69366
|
* [Api set: ExcelApi 1.18]
|
|
@@ -69279,6 +69368,7 @@ declare namespace Excel {
|
|
|
69279
69368
|
height: number;
|
|
69280
69369
|
/**
|
|
69281
69370
|
* Specifies the visibility of the note. A value of `true` means the note is shown.
|
|
69371
|
+
* Note: This property is not supported in Excel on the web.
|
|
69282
69372
|
*
|
|
69283
69373
|
* @remarks
|
|
69284
69374
|
* [Api set: ExcelApi 1.18]
|
|
@@ -69286,6 +69376,7 @@ declare namespace Excel {
|
|
|
69286
69376
|
visible: boolean;
|
|
69287
69377
|
/**
|
|
69288
69378
|
* Specifies the width of the note.
|
|
69379
|
+
* Note: This property is not supported in Excel on the web.
|
|
69289
69380
|
*
|
|
69290
69381
|
* @remarks
|
|
69291
69382
|
* [Api set: ExcelApi 1.18]
|
|
@@ -79267,6 +79358,7 @@ declare namespace Excel {
|
|
|
79267
79358
|
content?: string;
|
|
79268
79359
|
/**
|
|
79269
79360
|
* Specifies the height of the note.
|
|
79361
|
+
* Note: This property is not supported in Excel on the web.
|
|
79270
79362
|
*
|
|
79271
79363
|
* @remarks
|
|
79272
79364
|
* [Api set: ExcelApi 1.18]
|
|
@@ -79274,6 +79366,7 @@ declare namespace Excel {
|
|
|
79274
79366
|
height?: number;
|
|
79275
79367
|
/**
|
|
79276
79368
|
* Specifies the visibility of the note. A value of `true` means the note is shown.
|
|
79369
|
+
* Note: This property is not supported in Excel on the web.
|
|
79277
79370
|
*
|
|
79278
79371
|
* @remarks
|
|
79279
79372
|
* [Api set: ExcelApi 1.18]
|
|
@@ -79281,6 +79374,7 @@ declare namespace Excel {
|
|
|
79281
79374
|
visible?: boolean;
|
|
79282
79375
|
/**
|
|
79283
79376
|
* Specifies the width of the note.
|
|
79377
|
+
* Note: This property is not supported in Excel on the web.
|
|
79284
79378
|
*
|
|
79285
79379
|
* @remarks
|
|
79286
79380
|
* [Api set: ExcelApi 1.18]
|
|
@@ -86965,6 +87059,7 @@ declare namespace Excel {
|
|
|
86965
87059
|
content?: string;
|
|
86966
87060
|
/**
|
|
86967
87061
|
* Specifies the height of the note.
|
|
87062
|
+
* Note: This property is not supported in Excel on the web.
|
|
86968
87063
|
*
|
|
86969
87064
|
* @remarks
|
|
86970
87065
|
* [Api set: ExcelApi 1.18]
|
|
@@ -86972,6 +87067,7 @@ declare namespace Excel {
|
|
|
86972
87067
|
height?: number;
|
|
86973
87068
|
/**
|
|
86974
87069
|
* Specifies the visibility of the note. A value of `true` means the note is shown.
|
|
87070
|
+
* Note: This property is not supported in Excel on the web.
|
|
86975
87071
|
*
|
|
86976
87072
|
* @remarks
|
|
86977
87073
|
* [Api set: ExcelApi 1.18]
|
|
@@ -86979,6 +87075,7 @@ declare namespace Excel {
|
|
|
86979
87075
|
visible?: boolean;
|
|
86980
87076
|
/**
|
|
86981
87077
|
* Specifies the width of the note.
|
|
87078
|
+
* Note: This property is not supported in Excel on the web.
|
|
86982
87079
|
*
|
|
86983
87080
|
* @remarks
|
|
86984
87081
|
* [Api set: ExcelApi 1.18]
|
|
@@ -99734,6 +99831,7 @@ declare namespace Excel {
|
|
|
99734
99831
|
content?: boolean;
|
|
99735
99832
|
/**
|
|
99736
99833
|
* For EACH ITEM in the collection: Specifies the height of the note.
|
|
99834
|
+
* Note: This property is not supported in Excel on the web.
|
|
99737
99835
|
*
|
|
99738
99836
|
* @remarks
|
|
99739
99837
|
* [Api set: ExcelApi 1.18]
|
|
@@ -99741,6 +99839,7 @@ declare namespace Excel {
|
|
|
99741
99839
|
height?: boolean;
|
|
99742
99840
|
/**
|
|
99743
99841
|
* For EACH ITEM in the collection: Specifies the visibility of the note. A value of `true` means the note is shown.
|
|
99842
|
+
* Note: This property is not supported in Excel on the web.
|
|
99744
99843
|
*
|
|
99745
99844
|
* @remarks
|
|
99746
99845
|
* [Api set: ExcelApi 1.18]
|
|
@@ -99748,6 +99847,7 @@ declare namespace Excel {
|
|
|
99748
99847
|
visible?: boolean;
|
|
99749
99848
|
/**
|
|
99750
99849
|
* For EACH ITEM in the collection: Specifies the width of the note.
|
|
99850
|
+
* Note: This property is not supported in Excel on the web.
|
|
99751
99851
|
*
|
|
99752
99852
|
* @remarks
|
|
99753
99853
|
* [Api set: ExcelApi 1.18]
|
office-js-preview/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.669",
|
|
4
4
|
"description": "TypeScript definitions for office-js-preview",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "8877231029e3d2899fc76dd63bc1d21bac4830866deb7faf4e414eed6057ce65",
|
|
50
50
|
"typeScriptVersion": "5.2",
|
|
51
51
|
"nonNpm": true
|
|
52
52
|
}
|