@types/office-js 1.0.415 → 1.0.416
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 +1 -1
- office-js/index.d.ts +20 -10
- office-js/package.json +2 -2
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:
|
|
11
|
+
* Last updated: Wed, 04 Sep 2024 21:07:34 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -89929,6 +89929,16 @@ declare namespace Word {
|
|
|
89929
89929
|
* @param insertLocation Required. The value must be 'Start', 'End', 'Before', or 'After'.
|
|
89930
89930
|
*/
|
|
89931
89931
|
insertParagraph(paragraphText: string, insertLocation: Word.InsertLocation.start | Word.InsertLocation.end | Word.InsertLocation.before | Word.InsertLocation.after | "Start" | "End" | "Before" | "After"): Word.Paragraph;
|
|
89932
|
+
/**
|
|
89933
|
+
* Resets the font of the bullet, number, or picture at the specified level in the list.
|
|
89934
|
+
*
|
|
89935
|
+
* @remarks
|
|
89936
|
+
* [Api set: WordApiDesktop 1.1]
|
|
89937
|
+
*
|
|
89938
|
+
* @param level Required. The level in the list.
|
|
89939
|
+
* @param resetFontName Optional. Indicates whether to reset the font name. Default is false that indicates the font name is kept unchanged.
|
|
89940
|
+
*/
|
|
89941
|
+
resetLevelFont(level: number, resetFontName?: boolean): void;
|
|
89932
89942
|
/**
|
|
89933
89943
|
* Sets the alignment of the bullet, number, or picture at the specified level in the list.
|
|
89934
89944
|
*
|
|
@@ -106342,19 +106352,19 @@ declare namespace Word {
|
|
|
106342
106352
|
}
|
|
106343
106353
|
/**
|
|
106344
106354
|
* 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
|
|
106346
|
-
* @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of
|
|
106355
|
+
* @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()`.
|
|
106356
|
+
* @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
106357
|
*/
|
|
106348
106358
|
function run<T>(objects: OfficeExtension.ClientObject[], batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
106349
106359
|
/**
|
|
106350
106360
|
* 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
|
|
106352
|
-
* @param batch - A function that takes in a RequestContext and returns a promise (typically, just the result of
|
|
106361
|
+
* @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()`.
|
|
106362
|
+
* @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
106363
|
*/
|
|
106354
106364
|
function run<T>(object: OfficeExtension.ClientObject, batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
106355
106365
|
/**
|
|
106356
106366
|
* 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
|
|
106367
|
+
* @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
106368
|
*/
|
|
106359
106369
|
function run<T>(batch: (context: Word.RequestContext) => Promise<T>): Promise<T>;
|
|
106360
106370
|
}
|
|
@@ -121353,21 +121363,21 @@ declare namespace PowerPoint {
|
|
|
121353
121363
|
* For EACH ITEM in the collection: Returns the fill formatting of this shape.
|
|
121354
121364
|
*
|
|
121355
121365
|
* @remarks
|
|
121356
|
-
* [Api set: PowerPointApi 1.
|
|
121366
|
+
* [Api set: PowerPointApi 1.5]
|
|
121357
121367
|
*/
|
|
121358
121368
|
fill?: PowerPoint.Interfaces.ShapeFillLoadOptions;
|
|
121359
121369
|
/**
|
|
121360
121370
|
* For EACH ITEM in the collection: Returns the line formatting of this shape.
|
|
121361
121371
|
*
|
|
121362
121372
|
* @remarks
|
|
121363
|
-
* [Api set: PowerPointApi 1.
|
|
121373
|
+
* [Api set: PowerPointApi 1.5]
|
|
121364
121374
|
*/
|
|
121365
121375
|
lineFormat?: PowerPoint.Interfaces.ShapeLineFormatLoadOptions;
|
|
121366
121376
|
/**
|
|
121367
121377
|
* For EACH ITEM in the collection: Returns the text frame object of this shape.
|
|
121368
121378
|
*
|
|
121369
121379
|
* @remarks
|
|
121370
|
-
* [Api set: PowerPointApi 1.
|
|
121380
|
+
* [Api set: PowerPointApi 1.5]
|
|
121371
121381
|
*/
|
|
121372
121382
|
textFrame?: PowerPoint.Interfaces.TextFrameLoadOptions;
|
|
121373
121383
|
/**
|
|
@@ -121468,14 +121478,14 @@ declare namespace PowerPoint {
|
|
|
121468
121478
|
* For EACH ITEM in the collection: Gets the layout of the slide.
|
|
121469
121479
|
*
|
|
121470
121480
|
* @remarks
|
|
121471
|
-
* [Api set: PowerPointApi 1.
|
|
121481
|
+
* [Api set: PowerPointApi 1.5]
|
|
121472
121482
|
*/
|
|
121473
121483
|
layout?: PowerPoint.Interfaces.SlideLayoutLoadOptions;
|
|
121474
121484
|
/**
|
|
121475
121485
|
* For EACH ITEM in the collection: Gets the `SlideMaster` object that represents the slide's default content.
|
|
121476
121486
|
*
|
|
121477
121487
|
* @remarks
|
|
121478
|
-
* [Api set: PowerPointApi 1.
|
|
121488
|
+
* [Api set: PowerPointApi 1.5]
|
|
121479
121489
|
*/
|
|
121480
121490
|
slideMaster?: PowerPoint.Interfaces.SlideMasterLoadOptions;
|
|
121481
121491
|
/**
|
office-js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/office-js",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.416",
|
|
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": "
|
|
48
|
+
"typesPublisherContentHash": "ac9502ee9ec35a073d68444549566e2514cb9acdc0b6f55f365b8a24fc399dcb",
|
|
49
49
|
"typeScriptVersion": "4.8"
|
|
50
50
|
}
|