@types/office-js 1.0.546 → 1.0.547
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 +48 -0
- 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: Fri, 10 Oct 2025 20:02:21 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
|
|
14
14
|
# Credits
|
office-js/index.d.ts
CHANGED
|
@@ -6875,6 +6875,23 @@ declare namespace Office {
|
|
|
6875
6875
|
*/
|
|
6876
6876
|
name: string;
|
|
6877
6877
|
}
|
|
6878
|
+
/**
|
|
6879
|
+
* Provides options to manage the user interface of an Office Add-in while the add-in is running.
|
|
6880
|
+
*
|
|
6881
|
+
* @remarks
|
|
6882
|
+
*
|
|
6883
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
6884
|
+
*/
|
|
6885
|
+
interface ExtensionLifeCycle {
|
|
6886
|
+
/**
|
|
6887
|
+
* Gets an object that represents the task pane of an add-in.
|
|
6888
|
+
*
|
|
6889
|
+
* @remarks
|
|
6890
|
+
*
|
|
6891
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
6892
|
+
*/
|
|
6893
|
+
taskpane: TaskPane;
|
|
6894
|
+
}
|
|
6878
6895
|
/**
|
|
6879
6896
|
* Represents the document file associated with an Office Add-in.
|
|
6880
6897
|
*
|
|
@@ -8564,6 +8581,37 @@ declare namespace Office {
|
|
|
8564
8581
|
*/
|
|
8565
8582
|
rows: any[][];
|
|
8566
8583
|
}
|
|
8584
|
+
/**
|
|
8585
|
+
* Provides methods to manage the task pane of an add-in.
|
|
8586
|
+
*
|
|
8587
|
+
* @remarks
|
|
8588
|
+
*
|
|
8589
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
8590
|
+
*/
|
|
8591
|
+
interface TaskPane {
|
|
8592
|
+
/**
|
|
8593
|
+
* Sets the width of the task pane of an add-in in pixels.
|
|
8594
|
+
*
|
|
8595
|
+
* @remarks
|
|
8596
|
+
*
|
|
8597
|
+
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
|
|
8598
|
+
*
|
|
8599
|
+
* **Important**: The default width of the task pane of an add-in varies depending on the platform.
|
|
8600
|
+
*
|
|
8601
|
+
* - **Web (Excel)**: 350 px
|
|
8602
|
+
*
|
|
8603
|
+
* - **Web (Word)**: 330 px
|
|
8604
|
+
*
|
|
8605
|
+
* - **Windows**: 51 px
|
|
8606
|
+
*
|
|
8607
|
+
* If you pass a width beyond the minimum and maximum constraints, the task pane isn't resized and no error is shown.
|
|
8608
|
+
*
|
|
8609
|
+
* @param width The width of a task pane in pixels. The minimum and maximum constraints vary by platform. In Excel on the web, the width must be between
|
|
8610
|
+
* 350 and 500 px (inclusive). In Word on the web, the width must be between 330 and 500 px (inclusive). In Office on Windows, the width
|
|
8611
|
+
* must be between 51 px and 50% of the client window.
|
|
8612
|
+
*/
|
|
8613
|
+
setWidth(width: number): void;
|
|
8614
|
+
}
|
|
8567
8615
|
/**
|
|
8568
8616
|
* Represents a bound text selection in the document.
|
|
8569
8617
|
*
|
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.547",
|
|
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",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"scripts": {},
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"peerDependencies": {},
|
|
49
|
-
"typesPublisherContentHash": "
|
|
49
|
+
"typesPublisherContentHash": "5cbb58bfb13f5fae499c00372a4e43326eebb04acac360191fb798f7b4939d0b",
|
|
50
50
|
"typeScriptVersion": "5.2"
|
|
51
51
|
}
|