From cb66efd18ac6568f498c28c03890f6dec98e3650 Mon Sep 17 00:00:00 2001 From: David Chesnut Date: Fri, 17 Apr 2026 17:03:02 -0700 Subject: [PATCH 1/2] [office-js] [office-js-preview] (Word) Desktop 1.5 release (#74894) --- types/office-js-preview/index.d.ts | 12 ++++-------- types/office-js/index.d.ts | 31 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 8 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 20155654e40705..f6008c22b0917a 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -148585,8 +148585,7 @@ declare namespace Word { * Adds a new `ListTemplate` object. Note: This operation isn't allowed if the collection represents list templates from a {@link Word.ListTemplateGallery}. * * @remarks - * [Api set: WordApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: WordApiDesktop 1.5] * * @param options Optional. Options for adding a new list template. */ @@ -148637,24 +148636,21 @@ declare namespace Word { * Represents the options for the {@link Word.ListTemplateCollection | ListTemplateCollection.add} method. * * @remarks - * [Api set: WordApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: WordApiDesktop 1.5] */ interface ListTemplateAddOptions { /** * If provided, specifies the name of the list template to be added. * * @remarks - * [Api set: WordApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: WordApiDesktop 1.5] */ name?: string; /** * If provided, specifies whether to apply outline numbering to the new list template. The default value is `false`. * * @remarks - * [Api set: WordApi BETA (PREVIEW ONLY)] - * @beta + * [Api set: WordApiDesktop 1.5] */ outlineNumbered?: boolean; } diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 1ce8d7b71c557c..c6b777f4842098 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -139699,6 +139699,15 @@ declare namespace Word { context: RequestContext; /** Gets the loaded child items in this collection. */ readonly items: Word.ListTemplate[]; + /** + * Adds a new `ListTemplate` object. Note: This operation isn't allowed if the collection represents list templates from a {@link Word.ListTemplateGallery}. + * + * @remarks + * [Api set: WordApiDesktop 1.5] + * + * @param options Optional. Options for adding a new list template. + */ + add(options?: Word.ListTemplateAddOptions): Word.ListTemplate; /** * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties. * @@ -139731,6 +139740,28 @@ declare namespace Word { */ toJSON(): Word.Interfaces.ListTemplateCollectionData; } + /** + * Represents the options for the {@link Word.ListTemplateCollection | ListTemplateCollection.add} method. + * + * @remarks + * [Api set: WordApiDesktop 1.5] + */ + interface ListTemplateAddOptions { + /** + * If provided, specifies the name of the list template to be added. + * + * @remarks + * [Api set: WordApiDesktop 1.5] + */ + name?: string; + /** + * If provided, specifies whether to apply outline numbering to the new list template. The default value is `false`. + * + * @remarks + * [Api set: WordApiDesktop 1.5] + */ + outlineNumbered?: boolean; + } /** * Represents a gallery of list templates of the same {@link Word.ListTemplateGalleryType}. * From a17ae8f4a2b1cbb7f434dc96ef5bea46babf4d84 Mon Sep 17 00:00:00 2001 From: Alison McKay Date: Fri, 17 Apr 2026 17:05:32 -0700 Subject: [PATCH 2/2] [office-js] [office-js-preview] (Excel) Remove incorrect param from datevalue method (#74893) --- types/office-js-preview/index.d.ts | 2 +- types/office-js/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index f6008c22b0917a..2d51cb9788c7c2 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -72134,7 +72134,7 @@ declare namespace Excel { * * @param dateText Is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999. */ - datevalue(dateText: string | number | Excel.Range | Excel.RangeReference | Excel.FunctionResult): FunctionResult; + datevalue(dateText: string | Excel.Range | Excel.RangeReference | Excel.FunctionResult): FunctionResult; /** * Returns the day of the month, a number from 1 to 31. * diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index c6b777f4842098..a8ee98c14c0f86 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -66853,7 +66853,7 @@ declare namespace Excel { * * @param dateText Is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999. */ - datevalue(dateText: string | number | Excel.Range | Excel.RangeReference | Excel.FunctionResult): FunctionResult; + datevalue(dateText: string | Excel.Range | Excel.RangeReference | Excel.FunctionResult): FunctionResult; /** * Returns the day of the month, a number from 1 to 31. *