@types/office-js-preview 1.0.352 → 1.0.353
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 +35 -70
- 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 (https://github.com/OfficeD
|
|
|
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: Fri, 11 Nov 2022 19:32:52 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js-preview/index.d.ts
CHANGED
|
@@ -112040,8 +112040,7 @@ declare namespace PowerPoint {
|
|
|
112040
112040
|
If no shapes are selected, an empty collection is returned.
|
|
112041
112041
|
*
|
|
112042
112042
|
* @remarks
|
|
112043
|
-
* [Api set: PowerPointApi
|
|
112044
|
-
* @beta
|
|
112043
|
+
* [Api set: PowerPointApi 1.5]
|
|
112045
112044
|
*/
|
|
112046
112045
|
getSelectedShapes(): PowerPoint.ShapeScopedCollection;
|
|
112047
112046
|
/**
|
|
@@ -112050,8 +112049,7 @@ declare namespace PowerPoint {
|
|
|
112050
112049
|
If no slides are selected, an empty collection is returned.
|
|
112051
112050
|
*
|
|
112052
112051
|
* @remarks
|
|
112053
|
-
* [Api set: PowerPointApi
|
|
112054
|
-
* @beta
|
|
112052
|
+
* [Api set: PowerPointApi 1.5]
|
|
112055
112053
|
*/
|
|
112056
112054
|
getSelectedSlides(): PowerPoint.SlideScopedCollection;
|
|
112057
112055
|
/**
|
|
@@ -112059,8 +112057,7 @@ declare namespace PowerPoint {
|
|
|
112059
112057
|
Throws an exception if no text is selected.
|
|
112060
112058
|
*
|
|
112061
112059
|
* @remarks
|
|
112062
|
-
* [Api set: PowerPointApi
|
|
112063
|
-
* @beta
|
|
112060
|
+
* [Api set: PowerPointApi 1.5]
|
|
112064
112061
|
*/
|
|
112065
112062
|
getSelectedTextRange(): PowerPoint.TextRange;
|
|
112066
112063
|
/**
|
|
@@ -112068,8 +112065,7 @@ declare namespace PowerPoint {
|
|
|
112068
112065
|
If no text is selected, an object with an `isNullObject` property set to `true` is returned.
|
|
112069
112066
|
*
|
|
112070
112067
|
* @remarks
|
|
112071
|
-
* [Api set: PowerPointApi
|
|
112072
|
-
* @beta
|
|
112068
|
+
* [Api set: PowerPointApi 1.5]
|
|
112073
112069
|
*/
|
|
112074
112070
|
getSelectedTextRangeOrNullObject(): PowerPoint.TextRange;
|
|
112075
112071
|
/**
|
|
@@ -112086,8 +112082,7 @@ declare namespace PowerPoint {
|
|
|
112086
112082
|
* Selects the slides in the current view of the presentation. Existing slide selection is replaced with the new selection.
|
|
112087
112083
|
*
|
|
112088
112084
|
* @remarks
|
|
112089
|
-
* [Api set: PowerPointApi
|
|
112090
|
-
* @beta
|
|
112085
|
+
* [Api set: PowerPointApi 1.5]
|
|
112091
112086
|
*
|
|
112092
112087
|
* @param slideIds List of slide IDs to select in the presentation. If the list is empty, selection is cleared.
|
|
112093
112088
|
*/
|
|
@@ -114002,8 +113997,7 @@ declare namespace PowerPoint {
|
|
|
114002
113997
|
* Selects the specified shapes. Existing shape selection is replaced with the new selection.
|
|
114003
113998
|
*
|
|
114004
113999
|
* @remarks
|
|
114005
|
-
* [Api set: PowerPointApi
|
|
114006
|
-
* @beta
|
|
114000
|
+
* [Api set: PowerPointApi 1.5]
|
|
114007
114001
|
*
|
|
114008
114002
|
* @param shapeIds List of shape IDs to select in the slide. If the list is empty, the selection is cleared.
|
|
114009
114003
|
*/
|
|
@@ -114680,8 +114674,7 @@ declare namespace PowerPoint {
|
|
|
114680
114674
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the available text from the starting point.
|
|
114681
114675
|
*
|
|
114682
114676
|
* @remarks
|
|
114683
|
-
* [Api set: PowerPointApi
|
|
114684
|
-
* @beta
|
|
114677
|
+
* [Api set: PowerPointApi 1.5]
|
|
114685
114678
|
*/
|
|
114686
114679
|
length: number;
|
|
114687
114680
|
/**
|
|
@@ -114689,8 +114682,7 @@ declare namespace PowerPoint {
|
|
|
114689
114682
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the text.
|
|
114690
114683
|
*
|
|
114691
114684
|
* @remarks
|
|
114692
|
-
* [Api set: PowerPointApi
|
|
114693
|
-
* @beta
|
|
114685
|
+
* [Api set: PowerPointApi 1.5]
|
|
114694
114686
|
*/
|
|
114695
114687
|
start: number;
|
|
114696
114688
|
/**
|
|
@@ -114704,8 +114696,7 @@ declare namespace PowerPoint {
|
|
|
114704
114696
|
* Returns the parent {@link PowerPoint.TextFrame} object that holds this `TextRange`.
|
|
114705
114697
|
*
|
|
114706
114698
|
* @remarks
|
|
114707
|
-
* [Api set: PowerPointApi
|
|
114708
|
-
* @beta
|
|
114699
|
+
* [Api set: PowerPointApi 1.5]
|
|
114709
114700
|
*/
|
|
114710
114701
|
getParentTextFrame(): PowerPoint.TextFrame;
|
|
114711
114702
|
/**
|
|
@@ -114722,8 +114713,7 @@ declare namespace PowerPoint {
|
|
|
114722
114713
|
* Selects this `TextRange` in the current view.
|
|
114723
114714
|
*
|
|
114724
114715
|
* @remarks
|
|
114725
|
-
* [Api set: PowerPointApi
|
|
114726
|
-
* @beta
|
|
114716
|
+
* [Api set: PowerPointApi 1.5]
|
|
114727
114717
|
*/
|
|
114728
114718
|
setSelected(): void;
|
|
114729
114719
|
/**
|
|
@@ -114836,8 +114826,7 @@ declare namespace PowerPoint {
|
|
|
114836
114826
|
* Returns the parent {@link PowerPoint.Shape} object that holds this `TextFrame`.
|
|
114837
114827
|
*
|
|
114838
114828
|
* @remarks
|
|
114839
|
-
* [Api set: PowerPointApi
|
|
114840
|
-
* @beta
|
|
114829
|
+
* [Api set: PowerPointApi 1.5]
|
|
114841
114830
|
*/
|
|
114842
114831
|
getParentShape(): PowerPoint.Shape;
|
|
114843
114832
|
/**
|
|
@@ -114964,48 +114953,42 @@ declare namespace PowerPoint {
|
|
|
114964
114953
|
* Returns the parent {@link PowerPoint.Slide} object that holds this `Shape`. Throws an exception if this shape does not belong to a `Slide`.
|
|
114965
114954
|
*
|
|
114966
114955
|
* @remarks
|
|
114967
|
-
* [Api set: PowerPointApi
|
|
114968
|
-
* @beta
|
|
114956
|
+
* [Api set: PowerPointApi 1.5]
|
|
114969
114957
|
*/
|
|
114970
114958
|
getParentSlide(): PowerPoint.Slide;
|
|
114971
114959
|
/**
|
|
114972
114960
|
* Returns the parent {@link PowerPoint.SlideLayout} object that holds this `Shape`. Throws an exception if this shape does not belong to a `SlideLayout`.
|
|
114973
114961
|
*
|
|
114974
114962
|
* @remarks
|
|
114975
|
-
* [Api set: PowerPointApi
|
|
114976
|
-
* @beta
|
|
114963
|
+
* [Api set: PowerPointApi 1.5]
|
|
114977
114964
|
*/
|
|
114978
114965
|
getParentSlideLayout(): PowerPoint.SlideLayout;
|
|
114979
114966
|
/**
|
|
114980
114967
|
* Returns the parent {@link PowerPoint.SlideLayout} object that holds this `Shape`. If this shape does not belong to a `SlideLayout`, an object with an `isNullObject` property set to `true` is returned.
|
|
114981
114968
|
*
|
|
114982
114969
|
* @remarks
|
|
114983
|
-
* [Api set: PowerPointApi
|
|
114984
|
-
* @beta
|
|
114970
|
+
* [Api set: PowerPointApi 1.5]
|
|
114985
114971
|
*/
|
|
114986
114972
|
getParentSlideLayoutOrNullObject(): PowerPoint.SlideLayout;
|
|
114987
114973
|
/**
|
|
114988
114974
|
* Returns the parent {@link PowerPoint.SlideMaster} object that holds this `Shape`. Throws an exception if this shape does not belong to a `SlideMaster`.
|
|
114989
114975
|
*
|
|
114990
114976
|
* @remarks
|
|
114991
|
-
* [Api set: PowerPointApi
|
|
114992
|
-
* @beta
|
|
114977
|
+
* [Api set: PowerPointApi 1.5]
|
|
114993
114978
|
*/
|
|
114994
114979
|
getParentSlideMaster(): PowerPoint.SlideMaster;
|
|
114995
114980
|
/**
|
|
114996
114981
|
* Returns the parent {@link PowerPoint.SlideMaster} object that holds this `Shape`. If this shape does not belong to a `SlideMaster`, an object with an `isNullObject` property set to `true` is returned.
|
|
114997
114982
|
*
|
|
114998
114983
|
* @remarks
|
|
114999
|
-
* [Api set: PowerPointApi
|
|
115000
|
-
* @beta
|
|
114984
|
+
* [Api set: PowerPointApi 1.5]
|
|
115001
114985
|
*/
|
|
115002
114986
|
getParentSlideMasterOrNullObject(): PowerPoint.SlideMaster;
|
|
115003
114987
|
/**
|
|
115004
114988
|
* Returns the parent {@link PowerPoint.Slide} object that holds this `Shape`. If this shape does not belong to a `Slide`, an object with an `isNullObject` property set to `true` is returned.
|
|
115005
114989
|
*
|
|
115006
114990
|
* @remarks
|
|
115007
|
-
* [Api set: PowerPointApi
|
|
115008
|
-
* @beta
|
|
114991
|
+
* [Api set: PowerPointApi 1.5]
|
|
115009
114992
|
*/
|
|
115010
114993
|
getParentSlideOrNullObject(): PowerPoint.Slide;
|
|
115011
114994
|
/**
|
|
@@ -115039,8 +115022,7 @@ declare namespace PowerPoint {
|
|
|
115039
115022
|
* Represents a collection of shapes.
|
|
115040
115023
|
*
|
|
115041
115024
|
* @remarks
|
|
115042
|
-
* [Api set: PowerPointApi
|
|
115043
|
-
* @beta
|
|
115025
|
+
* [Api set: PowerPointApi 1.5]
|
|
115044
115026
|
*/
|
|
115045
115027
|
class ShapeScopedCollection extends OfficeExtension.ClientObject {
|
|
115046
115028
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -115051,8 +115033,7 @@ declare namespace PowerPoint {
|
|
|
115051
115033
|
* Gets the number of shapes in the collection.
|
|
115052
115034
|
*
|
|
115053
115035
|
* @remarks
|
|
115054
|
-
* [Api set: PowerPointApi
|
|
115055
|
-
* @beta
|
|
115036
|
+
* [Api set: PowerPointApi 1.5]
|
|
115056
115037
|
* @returns The number of shapes in the collection.
|
|
115057
115038
|
*/
|
|
115058
115039
|
getCount(): OfficeExtension.ClientResult<number>;
|
|
@@ -115060,8 +115041,7 @@ declare namespace PowerPoint {
|
|
|
115060
115041
|
* Gets a shape using its unique ID. An error is thrown if the shape does not exist.
|
|
115061
115042
|
*
|
|
115062
115043
|
* @remarks
|
|
115063
|
-
* [Api set: PowerPointApi
|
|
115064
|
-
* @beta
|
|
115044
|
+
* [Api set: PowerPointApi 1.5]
|
|
115065
115045
|
*
|
|
115066
115046
|
* @param key The ID of the shape.
|
|
115067
115047
|
* @returns The shape with the unique ID. If such a shape does not exist, an error is thrown.
|
|
@@ -115071,8 +115051,7 @@ declare namespace PowerPoint {
|
|
|
115071
115051
|
* Gets a shape using its zero-based index in the collection. An error is thrown if the index is out of range.
|
|
115072
115052
|
*
|
|
115073
115053
|
* @remarks
|
|
115074
|
-
* [Api set: PowerPointApi
|
|
115075
|
-
* @beta
|
|
115054
|
+
* [Api set: PowerPointApi 1.5]
|
|
115076
115055
|
*
|
|
115077
115056
|
* @param index The index of the shape in the collection.
|
|
115078
115057
|
* @returns The shape at the given index. An error is thrown if index is out of range.
|
|
@@ -115082,8 +115061,7 @@ declare namespace PowerPoint {
|
|
|
115082
115061
|
* Gets a shape using its unique ID. If such a shape does not exist, an object with an `isNullObject` property set to true is returned.
|
|
115083
115062
|
*
|
|
115084
115063
|
* @remarks
|
|
115085
|
-
* [Api set: PowerPointApi
|
|
115086
|
-
* @beta
|
|
115064
|
+
* [Api set: PowerPointApi 1.5]
|
|
115087
115065
|
*
|
|
115088
115066
|
* @param id The ID of the shape.
|
|
115089
115067
|
* @returns The shape with the unique ID. If such a shape does not exist, an object with an `isNullObject` property set to true is returned.
|
|
@@ -115202,8 +115180,7 @@ declare namespace PowerPoint {
|
|
|
115202
115180
|
* Represents a collection of slides in the presentation.
|
|
115203
115181
|
*
|
|
115204
115182
|
* @remarks
|
|
115205
|
-
* [Api set: PowerPointApi
|
|
115206
|
-
* @beta
|
|
115183
|
+
* [Api set: PowerPointApi 1.5]
|
|
115207
115184
|
*/
|
|
115208
115185
|
class SlideScopedCollection extends OfficeExtension.ClientObject {
|
|
115209
115186
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
@@ -115214,8 +115191,7 @@ declare namespace PowerPoint {
|
|
|
115214
115191
|
* Gets the number of slides in the collection.
|
|
115215
115192
|
*
|
|
115216
115193
|
* @remarks
|
|
115217
|
-
* [Api set: PowerPointApi
|
|
115218
|
-
* @beta
|
|
115194
|
+
* [Api set: PowerPointApi 1.5]
|
|
115219
115195
|
* @returns The number of slides in the collection.
|
|
115220
115196
|
*/
|
|
115221
115197
|
getCount(): OfficeExtension.ClientResult<number>;
|
|
@@ -115223,8 +115199,7 @@ declare namespace PowerPoint {
|
|
|
115223
115199
|
* Gets a slide using its unique ID.
|
|
115224
115200
|
*
|
|
115225
115201
|
* @remarks
|
|
115226
|
-
* [Api set: PowerPointApi
|
|
115227
|
-
* @beta
|
|
115202
|
+
* [Api set: PowerPointApi 1.5]
|
|
115228
115203
|
*
|
|
115229
115204
|
* @param key The ID of the slide.
|
|
115230
115205
|
* @returns The slide with the unique ID. If such a slide does not exist, an error is thrown.
|
|
@@ -115234,8 +115209,7 @@ declare namespace PowerPoint {
|
|
|
115234
115209
|
* Gets a slide using its zero-based index in the collection.
|
|
115235
115210
|
*
|
|
115236
115211
|
* @remarks
|
|
115237
|
-
* [Api set: PowerPointApi
|
|
115238
|
-
* @beta
|
|
115212
|
+
* [Api set: PowerPointApi 1.5]
|
|
115239
115213
|
*
|
|
115240
115214
|
* @param index The index of the slide in the collection.
|
|
115241
115215
|
* @returns The slide at the given index. An error is thrown if index is out of range.
|
|
@@ -115247,8 +115221,7 @@ declare namespace PowerPoint {
|
|
|
115247
115221
|
and properties}.
|
|
115248
115222
|
*
|
|
115249
115223
|
* @remarks
|
|
115250
|
-
* [Api set: PowerPointApi
|
|
115251
|
-
* @beta
|
|
115224
|
+
* [Api set: PowerPointApi 1.5]
|
|
115252
115225
|
*
|
|
115253
115226
|
* @param id The ID of the slide.
|
|
115254
115227
|
* @returns The slide with the unique ID.
|
|
@@ -115525,8 +115498,7 @@ declare namespace PowerPoint {
|
|
|
115525
115498
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the available text from the starting point.
|
|
115526
115499
|
*
|
|
115527
115500
|
* @remarks
|
|
115528
|
-
* [Api set: PowerPointApi
|
|
115529
|
-
* @beta
|
|
115501
|
+
* [Api set: PowerPointApi 1.5]
|
|
115530
115502
|
*/
|
|
115531
115503
|
length?: number;
|
|
115532
115504
|
/**
|
|
@@ -115534,8 +115506,7 @@ declare namespace PowerPoint {
|
|
|
115534
115506
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the text.
|
|
115535
115507
|
*
|
|
115536
115508
|
* @remarks
|
|
115537
|
-
* [Api set: PowerPointApi
|
|
115538
|
-
* @beta
|
|
115509
|
+
* [Api set: PowerPointApi 1.5]
|
|
115539
115510
|
*/
|
|
115540
115511
|
start?: number;
|
|
115541
115512
|
/**
|
|
@@ -115870,8 +115841,7 @@ declare namespace PowerPoint {
|
|
|
115870
115841
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the available text from the starting point.
|
|
115871
115842
|
*
|
|
115872
115843
|
* @remarks
|
|
115873
|
-
* [Api set: PowerPointApi
|
|
115874
|
-
* @beta
|
|
115844
|
+
* [Api set: PowerPointApi 1.5]
|
|
115875
115845
|
*/
|
|
115876
115846
|
length?: number;
|
|
115877
115847
|
/**
|
|
@@ -115879,8 +115849,7 @@ declare namespace PowerPoint {
|
|
|
115879
115849
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the text.
|
|
115880
115850
|
*
|
|
115881
115851
|
* @remarks
|
|
115882
|
-
* [Api set: PowerPointApi
|
|
115883
|
-
* @beta
|
|
115852
|
+
* [Api set: PowerPointApi 1.5]
|
|
115884
115853
|
*/
|
|
115885
115854
|
start?: number;
|
|
115886
115855
|
/**
|
|
@@ -116490,8 +116459,7 @@ declare namespace PowerPoint {
|
|
|
116490
116459
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the available text from the starting point.
|
|
116491
116460
|
*
|
|
116492
116461
|
* @remarks
|
|
116493
|
-
* [Api set: PowerPointApi
|
|
116494
|
-
* @beta
|
|
116462
|
+
* [Api set: PowerPointApi 1.5]
|
|
116495
116463
|
*/
|
|
116496
116464
|
length?: boolean;
|
|
116497
116465
|
/**
|
|
@@ -116499,8 +116467,7 @@ declare namespace PowerPoint {
|
|
|
116499
116467
|
Throws an `InvalidArgument` exception when set with a negative value or if the value is greater than the length of the text.
|
|
116500
116468
|
*
|
|
116501
116469
|
* @remarks
|
|
116502
|
-
* [Api set: PowerPointApi
|
|
116503
|
-
* @beta
|
|
116470
|
+
* [Api set: PowerPointApi 1.5]
|
|
116504
116471
|
*/
|
|
116505
116472
|
start?: boolean;
|
|
116506
116473
|
/**
|
|
@@ -116672,8 +116639,7 @@ declare namespace PowerPoint {
|
|
|
116672
116639
|
* Represents a collection of shapes.
|
|
116673
116640
|
*
|
|
116674
116641
|
* @remarks
|
|
116675
|
-
* [Api set: PowerPointApi
|
|
116676
|
-
* @beta
|
|
116642
|
+
* [Api set: PowerPointApi 1.3]
|
|
116677
116643
|
*/
|
|
116678
116644
|
interface ShapeScopedCollectionLoadOptions {
|
|
116679
116645
|
/**
|
|
@@ -116788,8 +116754,7 @@ declare namespace PowerPoint {
|
|
|
116788
116754
|
* Represents a collection of slides in the presentation.
|
|
116789
116755
|
*
|
|
116790
116756
|
* @remarks
|
|
116791
|
-
* [Api set: PowerPointApi
|
|
116792
|
-
* @beta
|
|
116757
|
+
* [Api set: PowerPointApi 1.2]
|
|
116793
116758
|
*/
|
|
116794
116759
|
interface SlideScopedCollectionLoadOptions {
|
|
116795
116760
|
/**
|
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.353",
|
|
4
4
|
"description": "TypeScript definitions for Office.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js-preview",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
},
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
|
-
"typesPublisherContentHash": "
|
|
48
|
+
"typesPublisherContentHash": "d68bf7be647e7a31d46e504dd63fb2fa5f2984d7e119a294f8ac1aee58fb1c72",
|
|
49
49
|
"typeScriptVersion": "4.1"
|
|
50
50
|
}
|