@types/office-js 1.0.415 → 1.0.417

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/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.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 29 Aug 2024 16:39:18 GMT
11
+ * Last updated: Thu, 05 Sep 2024 15:36:35 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -87194,8 +87194,6 @@ declare namespace Word {
87194
87194
  readonly id: number;
87195
87195
  /**
87196
87196
  * Specifies the placeholder text of the content control. Dimmed text will be displayed when the content control is empty.
87197
-
87198
- Note: The set operation for this property isn't supported in Word on the web.
87199
87197
  *
87200
87198
  * @remarks
87201
87199
  * [Api set: WordApi 1.1]
@@ -89929,6 +89927,16 @@ declare namespace Word {
89929
89927
  * @param insertLocation Required. The value must be 'Start', 'End', 'Before', or 'After'.
89930
89928
  */
89931
89929
  insertParagraph(paragraphText: string, insertLocation: Word.InsertLocation.start | Word.InsertLocation.end | Word.InsertLocation.before | Word.InsertLocation.after | "Start" | "End" | "Before" | "After"): Word.Paragraph;
89930
+ /**
89931
+ * Resets the font of the bullet, number, or picture at the specified level in the list.
89932
+ *
89933
+ * @remarks
89934
+ * [Api set: WordApiDesktop 1.1]
89935
+ *
89936
+ * @param level Required. The level in the list.
89937
+ * @param resetFontName Optional. Indicates whether to reset the font name. Default is false that indicates the font name is kept unchanged.
89938
+ */
89939
+ resetLevelFont(level: number, resetFontName?: boolean): void;
89932
89940
  /**
89933
89941
  * Sets the alignment of the bullet, number, or picture at the specified level in the list.
89934
89942
  *
@@ -98660,8 +98668,6 @@ declare namespace Word {
98660
98668
  color?: string;
98661
98669
  /**
98662
98670
  * Specifies the placeholder text of the content control. Dimmed text will be displayed when the content control is empty.
98663
-
98664
- Note: The set operation for this property isn't supported in Word on the web.
98665
98671
  *
98666
98672
  * @remarks
98667
98673
  * [Api set: WordApi 1.1]
@@ -100308,8 +100314,6 @@ declare namespace Word {
100308
100314
  id?: number;
100309
100315
  /**
100310
100316
  * Specifies the placeholder text of the content control. Dimmed text will be displayed when the content control is empty.
100311
-
100312
- Note: The set operation for this property isn't supported in Word on the web.
100313
100317
  *
100314
100318
  * @remarks
100315
100319
  * [Api set: WordApi 1.1]
@@ -102744,8 +102748,6 @@ declare namespace Word {
102744
102748
  id?: boolean;
102745
102749
  /**
102746
102750
  * Specifies the placeholder text of the content control. Dimmed text will be displayed when the content control is empty.
102747
-
102748
- Note: The set operation for this property isn't supported in Word on the web.
102749
102751
  *
102750
102752
  * @remarks
102751
102753
  * [Api set: WordApi 1.1]
@@ -102919,8 +102921,6 @@ declare namespace Word {
102919
102921
  id?: boolean;
102920
102922
  /**
102921
102923
  * For EACH ITEM in the collection: Specifies the placeholder text of the content control. Dimmed text will be displayed when the content control is empty.
102922
-
102923
- Note: The set operation for this property isn't supported in Word on the web.
102924
102924
  *
102925
102925
  * @remarks
102926
102926
  * [Api set: WordApi 1.1]
@@ -106342,19 +106342,19 @@ declare namespace Word {
106342
106342
  }
106343
106343
  /**
106344
106344
  * Executes a batch script that performs actions on the Word object model, using the RequestContext of previously created API objects.
106345
- * @param objects - An array of previously created API objects. The array will be validated to make sure that all of the objects share the same context. The batch will use this shared RequestContext, which means that any changes applied to these objects will be picked up by "context.sync()".
106346
- * @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
106345
+ * @param objects - An array of previously created API objects. The array will be validated to make sure that all of the objects share the same context. The batch will use this shared RequestContext, which means that any changes applied to these objects will be picked up by `context.sync()`.
106346
+ * @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of `context.sync()`). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
106347
106347
  */
106348
106348
  function run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
106349
106349
  /**
106350
106350
  * Executes a batch script that performs actions on the Word object model, using the RequestContext of a previously created API object. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
106351
- * @param object - A previously created API object. The batch will use the same RequestContext as the passed-in object, which means that any changes applied to the object will be picked up by "context.sync()".
106352
- * @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
106351
+ * @param object - A previously created API object. The batch will use the same RequestContext as the passed-in object, which means that any changes applied to the object will be picked up by `context.sync()`.
106352
+ * @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of `context.sync()`). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
106353
106353
  */
106354
106354
  function run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
106355
106355
  /**
106356
106356
  * Executes a batch script that performs actions on the Word object model, using a new RequestContext. When the promise is resolved, any tracked objects that were automatically allocated during execution will be released.
106357
- * @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of "context.sync()"). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
106357
+ * @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of `context.sync()`). The context parameter facilitates requests to the Word application. Since the Office add-in and the Word application run in two different processes, the RequestContext is required to get access to the Word object model from the add-in.
106358
106358
  */
106359
106359
  function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
106360
106360
  }
@@ -121353,21 +121353,21 @@ declare namespace PowerPoint {
121353
121353
  * For EACH ITEM in the collection: Returns the fill formatting of this shape.
121354
121354
  *
121355
121355
  * @remarks
121356
- * [Api set: PowerPointApi 1.4]
121356
+ * [Api set: PowerPointApi 1.5]
121357
121357
  */
121358
121358
  fill?: PowerPoint.Interfaces.ShapeFillLoadOptions;
121359
121359
  /**
121360
121360
  * For EACH ITEM in the collection: Returns the line formatting of this shape.
121361
121361
  *
121362
121362
  * @remarks
121363
- * [Api set: PowerPointApi 1.4]
121363
+ * [Api set: PowerPointApi 1.5]
121364
121364
  */
121365
121365
  lineFormat?: PowerPoint.Interfaces.ShapeLineFormatLoadOptions;
121366
121366
  /**
121367
121367
  * For EACH ITEM in the collection: Returns the text frame object of this shape.
121368
121368
  *
121369
121369
  * @remarks
121370
- * [Api set: PowerPointApi 1.4]
121370
+ * [Api set: PowerPointApi 1.5]
121371
121371
  */
121372
121372
  textFrame?: PowerPoint.Interfaces.TextFrameLoadOptions;
121373
121373
  /**
@@ -121468,14 +121468,14 @@ declare namespace PowerPoint {
121468
121468
  * For EACH ITEM in the collection: Gets the layout of the slide.
121469
121469
  *
121470
121470
  * @remarks
121471
- * [Api set: PowerPointApi 1.3]
121471
+ * [Api set: PowerPointApi 1.5]
121472
121472
  */
121473
121473
  layout?: PowerPoint.Interfaces.SlideLayoutLoadOptions;
121474
121474
  /**
121475
121475
  * For EACH ITEM in the collection: Gets the `SlideMaster` object that represents the slide's default content.
121476
121476
  *
121477
121477
  * @remarks
121478
- * [Api set: PowerPointApi 1.3]
121478
+ * [Api set: PowerPointApi 1.5]
121479
121479
  */
121480
121480
  slideMaster?: PowerPoint.Interfaces.SlideMasterLoadOptions;
121481
121481
  /**
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.415",
3
+ "version": "1.0.417",
4
4
  "description": "TypeScript definitions for office-js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/office-js",
6
6
  "license": "MIT",
@@ -45,6 +45,6 @@
45
45
  },
46
46
  "scripts": {},
47
47
  "dependencies": {},
48
- "typesPublisherContentHash": "46ed3dbb48a85bca04fba8c83ccfc30aea2e5a1c8c01c26098906be2d8b0501b",
48
+ "typesPublisherContentHash": "8e773a557cacc1094557162f6424a8f40007d693e6e3d5117fc167b233c00d71",
49
49
  "typeScriptVersion": "4.8"
50
50
  }