Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions types/bun/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"private": true,
"name": "@types/bun",
"version": "1.2.9999",
"version": "1.3.9999",
"projects": [
"https://bun.com"
],
"dependencies": {
"bun-types": "1.2.23"
"bun-types": "1.3.0"
},
"devDependencies": {
"@types/bun": "workspace:."
Expand Down
48 changes: 48 additions & 0 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6885,6 +6885,23 @@ declare namespace Office {
*/
name: string;
}
/**
* Provides options to manage the user interface of an Office Add-in while the add-in is running.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*/
interface ExtensionLifeCycle {
/**
* Gets an object that represents the task pane of an add-in.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*/
taskpane: TaskPane;
}
/**
* Represents the document file associated with an Office Add-in.
*
Expand Down Expand Up @@ -8574,6 +8591,37 @@ declare namespace Office {
*/
rows: any[][];
}
/**
* Provides methods to manage the task pane of an add-in.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*/
interface TaskPane {
/**
* Sets the width of the task pane of an add-in in pixels.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*
* **Important**: The default width of the task pane of an add-in varies depending on the platform.
*
* - **Web (Excel)**: 350 px
*
* - **Web (Word)**: 330 px
*
* - **Windows**: 51 px
*
* If you pass a width beyond the minimum and maximum constraints, the task pane isn't resized and no error is shown.
*
* @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
* 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
* must be between 51 px and 50% of the client window.
*/
setWidth(width: number): void;
}
/**
* Represents a bound text selection in the document.
*
Expand Down
48 changes: 48 additions & 0 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6875,6 +6875,23 @@ declare namespace Office {
*/
name: string;
}
/**
* Provides options to manage the user interface of an Office Add-in while the add-in is running.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*/
interface ExtensionLifeCycle {
/**
* Gets an object that represents the task pane of an add-in.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*/
taskpane: TaskPane;
}
/**
* Represents the document file associated with an Office Add-in.
*
Expand Down Expand Up @@ -8564,6 +8581,37 @@ declare namespace Office {
*/
rows: any[][];
}
/**
* Provides methods to manage the task pane of an add-in.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*/
interface TaskPane {
/**
* Sets the width of the task pane of an add-in in pixels.
*
* @remarks
*
* **Requirement set**: {@link https://learn.microsoft.com/javascript/api/requirement-sets/common/task-pane-api-requirement-sets | TaskPaneApi 1.1}
*
* **Important**: The default width of the task pane of an add-in varies depending on the platform.
*
* - **Web (Excel)**: 350 px
*
* - **Web (Word)**: 330 px
*
* - **Windows**: 51 px
*
* If you pass a width beyond the minimum and maximum constraints, the task pane isn't resized and no error is shown.
*
* @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
* 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
* must be between 51 px and 50% of the client window.
*/
setWidth(width: number): void;
}
/**
* Represents a bound text selection in the document.
*
Expand Down