@types/office-js 1.0.588 → 1.0.589

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 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: Fri, 10 Apr 2026 22:09:56 GMT
11
+ * Last updated: Sat, 18 Apr 2026 00:15:41 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
office-js/index.d.ts CHANGED
@@ -66853,7 +66853,7 @@ declare namespace Excel {
66853
66853
  *
66854
66854
  * @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.
66855
66855
  */
66856
- datevalue(dateText: string | number | Excel.Range | Excel.RangeReference | Excel.FunctionResult<any>): FunctionResult<number>;
66856
+ datevalue(dateText: string | Excel.Range | Excel.RangeReference | Excel.FunctionResult<any>): FunctionResult<number>;
66857
66857
  /**
66858
66858
  * Returns the day of the month, a number from 1 to 31.
66859
66859
  *
@@ -139699,6 +139699,15 @@ declare namespace Word {
139699
139699
  context: RequestContext;
139700
139700
  /** Gets the loaded child items in this collection. */
139701
139701
  readonly items: Word.ListTemplate[];
139702
+ /**
139703
+ * Adds a new `ListTemplate` object. Note: This operation isn't allowed if the collection represents list templates from a {@link Word.ListTemplateGallery}.
139704
+ *
139705
+ * @remarks
139706
+ * [Api set: WordApiDesktop 1.5]
139707
+ *
139708
+ * @param options Optional. Options for adding a new list template.
139709
+ */
139710
+ add(options?: Word.ListTemplateAddOptions): Word.ListTemplate;
139702
139711
  /**
139703
139712
  * Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
139704
139713
  *
@@ -139731,6 +139740,28 @@ declare namespace Word {
139731
139740
  */
139732
139741
  toJSON(): Word.Interfaces.ListTemplateCollectionData;
139733
139742
  }
139743
+ /**
139744
+ * Represents the options for the {@link Word.ListTemplateCollection | ListTemplateCollection.add} method.
139745
+ *
139746
+ * @remarks
139747
+ * [Api set: WordApiDesktop 1.5]
139748
+ */
139749
+ interface ListTemplateAddOptions {
139750
+ /**
139751
+ * If provided, specifies the name of the list template to be added.
139752
+ *
139753
+ * @remarks
139754
+ * [Api set: WordApiDesktop 1.5]
139755
+ */
139756
+ name?: string;
139757
+ /**
139758
+ * If provided, specifies whether to apply outline numbering to the new list template. The default value is `false`.
139759
+ *
139760
+ * @remarks
139761
+ * [Api set: WordApiDesktop 1.5]
139762
+ */
139763
+ outlineNumbered?: boolean;
139764
+ }
139734
139765
  /**
139735
139766
  * Represents a gallery of list templates of the same {@link Word.ListTemplateGalleryType}.
139736
139767
  *
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.588",
3
+ "version": "1.0.589",
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": "c26be7405f469201aec8afa638c3a88656dc8cf36602aad429acafe4960d4cbd",
49
+ "typesPublisherContentHash": "0d11046ea37189f643d7ada2a6315aaf8705374a51a3f4a1d004d1a4cf9349c2",
50
50
  "typeScriptVersion": "5.3"
51
51
  }