@types/office-js 1.0.321 → 1.0.322
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 +18 -18
- 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: Thu, 20 Apr 2023
|
|
11
|
+
* Last updated: Thu, 20 Apr 2023 21:32:46 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `Excel`, `Office`, `OfficeCore`, `OfficeExtension`, `OneNote`, `PowerPoint`, `Visio`, `Word`
|
|
14
14
|
|
office-js/index.d.ts
CHANGED
|
@@ -82859,12 +82859,12 @@ declare namespace Word {
|
|
|
82859
82859
|
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
|
|
82860
82860
|
context: RequestContext;
|
|
82861
82861
|
/**
|
|
82862
|
-
* Creates a new document by using an optional
|
|
82862
|
+
* Creates a new document by using an optional Base64-encoded .docx file.
|
|
82863
82863
|
*
|
|
82864
82864
|
* @remarks
|
|
82865
82865
|
* [Api set: WordApi 1.3]
|
|
82866
82866
|
*
|
|
82867
|
-
* @param base64File Optional. The
|
|
82867
|
+
* @param base64File Optional. The Base64-encoded .docx file. The default value is null.
|
|
82868
82868
|
*/
|
|
82869
82869
|
createDocument(base64File?: string): Word.DocumentCreated;
|
|
82870
82870
|
/**
|
|
@@ -83095,7 +83095,7 @@ declare namespace Word {
|
|
|
83095
83095
|
*/
|
|
83096
83096
|
insertBreak(breakType: Word.BreakType | "Page" | "Next" | "SectionNext" | "SectionContinuous" | "SectionEven" | "SectionOdd" | "Line", insertLocation: Word.InsertLocation.start | Word.InsertLocation.end | "Start" | "End"): void;
|
|
83097
83097
|
/**
|
|
83098
|
-
* Wraps the
|
|
83098
|
+
* Wraps the Body object with a Rich Text content control.
|
|
83099
83099
|
*
|
|
83100
83100
|
* @remarks
|
|
83101
83101
|
* [Api set: WordApi 1.1]
|
|
@@ -83107,7 +83107,7 @@ declare namespace Word {
|
|
|
83107
83107
|
* @remarks
|
|
83108
83108
|
* [Api set: WordApi 1.1]
|
|
83109
83109
|
*
|
|
83110
|
-
* @param base64File Required. The
|
|
83110
|
+
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
83111
83111
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
|
|
83112
83112
|
*/
|
|
83113
83113
|
insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
|
|
@@ -83127,7 +83127,7 @@ declare namespace Word {
|
|
|
83127
83127
|
* @remarks
|
|
83128
83128
|
* [Api set: WordApi 1.2]
|
|
83129
83129
|
*
|
|
83130
|
-
* @param base64EncodedImage Required. The
|
|
83130
|
+
* @param base64EncodedImage Required. The Base64-encoded image to be inserted in the body.
|
|
83131
83131
|
* @param insertLocation Required. The value must be 'Start' or 'End'.
|
|
83132
83132
|
*/
|
|
83133
83133
|
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.start | Word.InsertLocation.end | "Start" | "End"): Word.InlinePicture;
|
|
@@ -84023,7 +84023,7 @@ declare namespace Word {
|
|
|
84023
84023
|
* @remarks
|
|
84024
84024
|
* [Api set: WordApi 1.1]
|
|
84025
84025
|
*
|
|
84026
|
-
* @param base64File Required. The
|
|
84026
|
+
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
84027
84027
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
|
|
84028
84028
|
*/
|
|
84029
84029
|
insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
|
|
@@ -84043,7 +84043,7 @@ declare namespace Word {
|
|
|
84043
84043
|
* @remarks
|
|
84044
84044
|
* [Api set: WordApi 1.2]
|
|
84045
84045
|
*
|
|
84046
|
-
* @param base64EncodedImage Required. The
|
|
84046
|
+
* @param base64EncodedImage Required. The Base64-encoded image to be inserted in the content control.
|
|
84047
84047
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'. 'Replace' cannot be used with 'RichTextTable' and 'RichTextTableRow' content controls.
|
|
84048
84048
|
*/
|
|
84049
84049
|
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.InlinePicture;
|
|
@@ -84220,12 +84220,12 @@ declare namespace Word {
|
|
|
84220
84220
|
*/
|
|
84221
84221
|
getByTitle(title: string): Word.ContentControlCollection;
|
|
84222
84222
|
/**
|
|
84223
|
-
* Gets the content controls that have the specified types
|
|
84223
|
+
* Gets the content controls that have the specified types.
|
|
84224
84224
|
*
|
|
84225
84225
|
* @remarks
|
|
84226
84226
|
* [Api set: WordApi 1.3]
|
|
84227
84227
|
*
|
|
84228
|
-
* @param types Required. An array of content control types
|
|
84228
|
+
* @param types Required. An array of content control types.
|
|
84229
84229
|
*/
|
|
84230
84230
|
getByTypes(types: Word.ContentControlType[]): Word.ContentControlCollection;
|
|
84231
84231
|
/**
|
|
@@ -85826,7 +85826,7 @@ declare namespace Word {
|
|
|
85826
85826
|
*/
|
|
85827
85827
|
delete(): void;
|
|
85828
85828
|
/**
|
|
85829
|
-
* Gets the
|
|
85829
|
+
* Gets the Base64-encoded string representation of the inline image.
|
|
85830
85830
|
*
|
|
85831
85831
|
* @remarks
|
|
85832
85832
|
* [Api set: WordApi 1.1]
|
|
@@ -85878,7 +85878,7 @@ declare namespace Word {
|
|
|
85878
85878
|
* @remarks
|
|
85879
85879
|
* [Api set: WordApi 1.2]
|
|
85880
85880
|
*
|
|
85881
|
-
* @param base64File Required. The
|
|
85881
|
+
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
85882
85882
|
* @param insertLocation Required. The value must be 'Before' or 'After'.
|
|
85883
85883
|
*/
|
|
85884
85884
|
insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.before | Word.InsertLocation.after | "Before" | "After"): Word.Range;
|
|
@@ -85898,7 +85898,7 @@ declare namespace Word {
|
|
|
85898
85898
|
* @remarks
|
|
85899
85899
|
* [Api set: WordApi 1.2]
|
|
85900
85900
|
*
|
|
85901
|
-
* @param base64EncodedImage Required. The
|
|
85901
|
+
* @param base64EncodedImage Required. The Base64-encoded image to be inserted.
|
|
85902
85902
|
* @param insertLocation Required. The value must be 'Replace', 'Before', or 'After'.
|
|
85903
85903
|
*/
|
|
85904
85904
|
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.before | Word.InsertLocation.after | "Replace" | "Before" | "After"): Word.InlinePicture;
|
|
@@ -86940,7 +86940,7 @@ declare namespace Word {
|
|
|
86940
86940
|
*/
|
|
86941
86941
|
insertBreak(breakType: Word.BreakType | "Page" | "Next" | "SectionNext" | "SectionContinuous" | "SectionEven" | "SectionOdd" | "Line", insertLocation: Word.InsertLocation.before | Word.InsertLocation.after | "Before" | "After"): void;
|
|
86942
86942
|
/**
|
|
86943
|
-
* Wraps the
|
|
86943
|
+
* Wraps the Paragraph object with a rich text content control.
|
|
86944
86944
|
*
|
|
86945
86945
|
* @remarks
|
|
86946
86946
|
* [Api set: WordApi 1.1]
|
|
@@ -86952,7 +86952,7 @@ declare namespace Word {
|
|
|
86952
86952
|
* @remarks
|
|
86953
86953
|
* [Api set: WordApi 1.1]
|
|
86954
86954
|
*
|
|
86955
|
-
* @param base64File Required. The
|
|
86955
|
+
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
86956
86956
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
|
|
86957
86957
|
*/
|
|
86958
86958
|
insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.Range;
|
|
@@ -86972,7 +86972,7 @@ declare namespace Word {
|
|
|
86972
86972
|
* @remarks
|
|
86973
86973
|
* [Api set: WordApi 1.1]
|
|
86974
86974
|
*
|
|
86975
|
-
* @param base64EncodedImage Required. The
|
|
86975
|
+
* @param base64EncodedImage Required. The Base64-encoded image to be inserted.
|
|
86976
86976
|
* @param insertLocation Required. The value must be 'Replace', 'Start', or 'End'.
|
|
86977
86977
|
*/
|
|
86978
86978
|
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation.replace | Word.InsertLocation.start | Word.InsertLocation.end | "Replace" | "Start" | "End"): Word.InlinePicture;
|
|
@@ -87509,7 +87509,7 @@ declare namespace Word {
|
|
|
87509
87509
|
*/
|
|
87510
87510
|
insertComment(commentText: string): Word.Comment;
|
|
87511
87511
|
/**
|
|
87512
|
-
* Wraps the
|
|
87512
|
+
* Wraps the Range object with a rich text content control.
|
|
87513
87513
|
*
|
|
87514
87514
|
* @remarks
|
|
87515
87515
|
* [Api set: WordApi 1.1]
|
|
@@ -87530,7 +87530,7 @@ declare namespace Word {
|
|
|
87530
87530
|
* @remarks
|
|
87531
87531
|
* [Api set: WordApi 1.1]
|
|
87532
87532
|
*
|
|
87533
|
-
* @param base64File Required. The
|
|
87533
|
+
* @param base64File Required. The Base64-encoded content of a .docx file.
|
|
87534
87534
|
* @param insertLocation Required. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
87535
87535
|
*/
|
|
87536
87536
|
insertFileFromBase64(base64File: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After"): Word.Range;
|
|
@@ -87559,7 +87559,7 @@ declare namespace Word {
|
|
|
87559
87559
|
* @remarks
|
|
87560
87560
|
* [Api set: WordApi 1.2]
|
|
87561
87561
|
*
|
|
87562
|
-
* @param base64EncodedImage Required. The
|
|
87562
|
+
* @param base64EncodedImage Required. The Base64-encoded image to be inserted.
|
|
87563
87563
|
* @param insertLocation Required. The value must be 'Replace', 'Start', 'End', 'Before', or 'After'.
|
|
87564
87564
|
*/
|
|
87565
87565
|
insertInlinePictureFromBase64(base64EncodedImage: string, insertLocation: Word.InsertLocation | "Replace" | "Start" | "End" | "Before" | "After"): Word.InlinePicture;
|
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.322",
|
|
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": "450cc2b8bfdc33e3f6d603873f501ab3072c1c8902df3b3b6bc87b7f780dc1e5",
|
|
49
49
|
"typeScriptVersion": "4.3"
|
|
50
50
|
}
|