@types/office-js 1.0.223 → 1.0.227

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: Tue, 14 Dec 2021 00:01:09 GMT
11
+ * Last updated: Mon, 20 Dec 2021 22:01:19 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
@@ -333,10 +333,20 @@ declare namespace Office {
333
333
  * Represents the add-in.
334
334
  */
335
335
  const addin: Addin;
336
+ /**
337
+ * Represents the Auth interface.
338
+ */
339
+ const auth: Auth;
336
340
  /**
337
341
  * Represents the ribbon associated with the Office application.
338
342
  */
339
343
  const ribbon: Ribbon;
344
+ /**
345
+ * Checks if the specified requirement set is supported by the host Office application.
346
+ * @param name - Set name; e.g., "MatrixBindings".
347
+ * @param minVersion - The minimum required version; e.g., "1.4".
348
+ */
349
+ function isSetSupported(name: string, minVersion?: string): boolean;
340
350
  // Enumerations
341
351
  /**
342
352
  * Provides options to determine the startup behavior of the add-in upon next start-up.
@@ -1659,7 +1669,7 @@ declare namespace Office {
1659
1669
  */
1660
1670
  interface GetFileOptions {
1661
1671
  /**
1662
- * The the size of the slices in bytes. The maximum (and the default) is 4194304 (4MB).
1672
+ * The size of the slices in bytes. The maximum (and the default) is 4194304 (4MB).
1663
1673
  */
1664
1674
  sliceSize?: number
1665
1675
  /**
@@ -22190,7 +22200,7 @@ declare namespace Excel {
22190
22200
  expand?: string;
22191
22201
  }): Excel.Workbook;
22192
22202
  /**
22193
- * Occurs when the the workbook is activated. Note: This event will not fire when the workbook is opened.
22203
+ * Occurs when the workbook is activated. Note: This event will not fire when the workbook is opened.
22194
22204
  *
22195
22205
  * @remarks
22196
22206
  * [Api set: ExcelApi 1.13]
@@ -24511,7 +24521,7 @@ declare namespace Excel {
24511
24521
  */
24512
24522
  readonly dataValidation: Excel.DataValidation;
24513
24523
  /**
24514
- * Returns a `RangeFormat` object, encapsulating the the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
24524
+ * Returns a `RangeFormat` object, encapsulating the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
24515
24525
  *
24516
24526
  * @remarks
24517
24527
  * [Api set: ExcelApi 1.9]
@@ -36859,7 +36869,7 @@ declare namespace Excel {
36859
36869
  type: Excel.ConditionalTopBottomCriterionType | "Invalid" | "TopItems" | "TopPercent" | "BottomItems" | "BottomPercent";
36860
36870
  }
36861
36871
  /**
36862
- * Represents the the preset criteria conditional format such as above average, below average, unique values, contains blank, nonblank, error, and noerror.
36872
+ * Represents the preset criteria conditional format such as above average, below average, unique values, contains blank, nonblank, error, and noerror.
36863
36873
  *
36864
36874
  * @remarks
36865
36875
  * [Api set: ExcelApi 1.6]
@@ -52741,7 +52751,7 @@ declare namespace Excel {
52741
52751
  */
52742
52752
  dataValidation?: Excel.Interfaces.DataValidationUpdateData;
52743
52753
  /**
52744
- * Returns a `RangeFormat` object, encapsulating the the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
52754
+ * Returns a `RangeFormat` object, encapsulating the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
52745
52755
  *
52746
52756
  * @remarks
52747
52757
  * [Api set: ExcelApi 1.9]
@@ -58047,7 +58057,7 @@ declare namespace Excel {
58047
58057
  */
58048
58058
  dataValidation?: Excel.Interfaces.DataValidationData;
58049
58059
  /**
58050
- * Returns a `RangeFormat` object, encapsulating the the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
58060
+ * Returns a `RangeFormat` object, encapsulating the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
58051
58061
  *
58052
58062
  * @remarks
58053
58063
  * [Api set: ExcelApi 1.9]
@@ -64640,7 +64650,7 @@ declare namespace Excel {
64640
64650
  */
64641
64651
  dataValidation?: Excel.Interfaces.DataValidationLoadOptions;
64642
64652
  /**
64643
- * Returns a `RangeFormat` object, encapsulating the the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
64653
+ * Returns a `RangeFormat` object, encapsulating the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
64644
64654
  *
64645
64655
  * @remarks
64646
64656
  * [Api set: ExcelApi 1.9]
@@ -71338,7 +71348,7 @@ declare namespace Excel {
71338
71348
  rule?: boolean;
71339
71349
  }
71340
71350
  /**
71341
- * Represents the the preset criteria conditional format such as above average, below average, unique values, contains blank, nonblank, error, and noerror.
71351
+ * Represents the preset criteria conditional format such as above average, below average, unique values, contains blank, nonblank, error, and noerror.
71342
71352
  *
71343
71353
  * @remarks
71344
71354
  * [Api set: ExcelApi 1.6]
@@ -72728,7 +72738,7 @@ declare namespace Excel {
72728
72738
  */
72729
72739
  dataValidation?: Excel.Interfaces.DataValidationLoadOptions;
72730
72740
  /**
72731
- * For EACH ITEM in the collection: Returns a `RangeFormat` object, encapsulating the the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
72741
+ * For EACH ITEM in the collection: Returns a `RangeFormat` object, encapsulating the font, fill, borders, alignment, and other properties for all ranges in the `RangeAreas` object.
72732
72742
  *
72733
72743
  * @remarks
72734
72744
  * [Api set: ExcelApi 1.9]
@@ -87570,14 +87580,14 @@ declare namespace OneNote {
87570
87580
  */
87571
87581
  readonly sectionGroups: OneNote.SectionGroupCollection;
87572
87582
  /**
87573
- * The the sections of the notebook. Read only
87583
+ * The sections of the notebook. Read only
87574
87584
  *
87575
87585
  * @remarks
87576
87586
  * [Api set: OneNoteApi 1.1]
87577
87587
  */
87578
87588
  readonly sections: OneNote.SectionCollection;
87579
87589
  /**
87580
- * The url of the site that this notebook is located. Read only
87590
+ * The url of the site where this notebook is located. Read only
87581
87591
  *
87582
87592
  * @remarks
87583
87593
  * [Api set: OneNoteApi 1.1]
@@ -87598,7 +87608,7 @@ declare namespace OneNote {
87598
87608
  */
87599
87609
  readonly id: string;
87600
87610
  /**
87601
- * True if the Notebook is not created by the user (i.e. 'Misplaced Sections'). Read only
87611
+ * True if the notebook is not created by the user (i.e., 'Misplaced Sections'). Read only
87602
87612
  *
87603
87613
  * @remarks
87604
87614
  * [Api set: OneNoteApi 1.2]
@@ -88212,7 +88222,7 @@ declare namespace OneNote {
88212
88222
  */
88213
88223
  readonly contents: OneNote.PageContentCollection;
88214
88224
  /**
88215
- * Text interpretation for the ink on the page. Returns null if there is no ink analysis information. Read only.
88225
+ * Text interpretation for the ink on the page. Returns null if there is no ink analysis information.
88216
88226
  *
88217
88227
  * @remarks
88218
88228
  * [Api set: OneNoteApi 1.1]
@@ -90714,7 +90724,7 @@ declare namespace OneNote {
90714
90724
  /** An interface for updating data on the Page object, for use in `page.set({ ... })`. */
90715
90725
  interface PageUpdateData {
90716
90726
  /**
90717
- * Text interpretation for the ink on the page. Returns null if there is no ink analysis information. Read only.
90727
+ * Text interpretation for the ink on the page. Returns null if there is no ink analysis information.
90718
90728
  *
90719
90729
  * @remarks
90720
90730
  * [Api set: OneNoteApi 1.1]
@@ -91064,14 +91074,14 @@ declare namespace OneNote {
91064
91074
  */
91065
91075
  sectionGroups?: OneNote.Interfaces.SectionGroupData[];
91066
91076
  /**
91067
- * The the sections of the notebook. Read only
91077
+ * The sections of the notebook. Read only
91068
91078
  *
91069
91079
  * @remarks
91070
91080
  * [Api set: OneNoteApi 1.1]
91071
91081
  */
91072
91082
  sections?: OneNote.Interfaces.SectionData[];
91073
91083
  /**
91074
- * The url of the site that this notebook is located. Read only
91084
+ * The url of the site where this notebook is located. Read only
91075
91085
  *
91076
91086
  * @remarks
91077
91087
  * [Api set: OneNoteApi 1.1]
@@ -91092,7 +91102,7 @@ declare namespace OneNote {
91092
91102
  */
91093
91103
  id?: string;
91094
91104
  /**
91095
- * True if the Notebook is not created by the user (i.e. 'Misplaced Sections'). Read only
91105
+ * True if the notebook is not created by the user (i.e., 'Misplaced Sections'). Read only
91096
91106
  *
91097
91107
  * @remarks
91098
91108
  * [Api set: OneNoteApi 1.2]
@@ -91218,7 +91228,7 @@ declare namespace OneNote {
91218
91228
  */
91219
91229
  contents?: OneNote.Interfaces.PageContentData[];
91220
91230
  /**
91221
- * Text interpretation for the ink on the page. Returns null if there is no ink analysis information. Read only.
91231
+ * Text interpretation for the ink on the page. Returns null if there is no ink analysis information.
91222
91232
  *
91223
91233
  * @remarks
91224
91234
  * [Api set: OneNoteApi 1.1]
@@ -92118,14 +92128,14 @@ declare namespace OneNote {
92118
92128
  */
92119
92129
  sectionGroups?: OneNote.Interfaces.SectionGroupCollectionLoadOptions;
92120
92130
  /**
92121
- * The the sections of the notebook. Read only
92131
+ * The sections of the notebook. Read only
92122
92132
  *
92123
92133
  * @remarks
92124
92134
  * [Api set: OneNoteApi 1.1]
92125
92135
  */
92126
92136
  sections?: OneNote.Interfaces.SectionCollectionLoadOptions;
92127
92137
  /**
92128
- * The url of the site that this notebook is located. Read only
92138
+ * The url of the site where this notebook is located. Read only
92129
92139
  *
92130
92140
  * @remarks
92131
92141
  * [Api set: OneNoteApi 1.1]
@@ -92146,7 +92156,7 @@ declare namespace OneNote {
92146
92156
  */
92147
92157
  id?: boolean;
92148
92158
  /**
92149
- * True if the Notebook is not created by the user (i.e. 'Misplaced Sections'). Read only
92159
+ * True if the notebook is not created by the user (i.e., 'Misplaced Sections'). Read only
92150
92160
  *
92151
92161
  * @remarks
92152
92162
  * [Api set: OneNoteApi 1.2]
@@ -92179,14 +92189,14 @@ declare namespace OneNote {
92179
92189
  */
92180
92190
  sectionGroups?: OneNote.Interfaces.SectionGroupCollectionLoadOptions;
92181
92191
  /**
92182
- * For EACH ITEM in the collection: The the sections of the notebook. Read only
92192
+ * For EACH ITEM in the collection: The sections of the notebook. Read only
92183
92193
  *
92184
92194
  * @remarks
92185
92195
  * [Api set: OneNoteApi 1.1]
92186
92196
  */
92187
92197
  sections?: OneNote.Interfaces.SectionCollectionLoadOptions;
92188
92198
  /**
92189
- * For EACH ITEM in the collection: The url of the site that this notebook is located. Read only
92199
+ * For EACH ITEM in the collection: The url of the site where this notebook is located. Read only
92190
92200
  *
92191
92201
  * @remarks
92192
92202
  * [Api set: OneNoteApi 1.1]
@@ -92207,7 +92217,7 @@ declare namespace OneNote {
92207
92217
  */
92208
92218
  id?: boolean;
92209
92219
  /**
92210
- * For EACH ITEM in the collection: True if the Notebook is not created by the user (i.e. 'Misplaced Sections'). Read only
92220
+ * For EACH ITEM in the collection: True if the notebook is not created by the user (i.e., 'Misplaced Sections'). Read only
92211
92221
  *
92212
92222
  * @remarks
92213
92223
  * [Api set: OneNoteApi 1.2]
@@ -92540,7 +92550,7 @@ declare namespace OneNote {
92540
92550
  */
92541
92551
  contents?: OneNote.Interfaces.PageContentCollectionLoadOptions;
92542
92552
  /**
92543
- * Text interpretation for the ink on the page. Returns null if there is no ink analysis information. Read only.
92553
+ * Text interpretation for the ink on the page. Returns null if there is no ink analysis information.
92544
92554
  *
92545
92555
  * @remarks
92546
92556
  * [Api set: OneNoteApi 1.1]
@@ -92615,7 +92625,7 @@ declare namespace OneNote {
92615
92625
  */
92616
92626
  contents?: OneNote.Interfaces.PageContentCollectionLoadOptions;
92617
92627
  /**
92618
- * For EACH ITEM in the collection: Text interpretation for the ink on the page. Returns null if there is no ink analysis information. Read only.
92628
+ * For EACH ITEM in the collection: Text interpretation for the ink on the page. Returns null if there is no ink analysis information.
92619
92629
  *
92620
92630
  * @remarks
92621
92631
  * [Api set: OneNoteApi 1.1]
office-js/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/office-js",
3
- "version": "1.0.223",
3
+ "version": "1.0.227",
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",
@@ -40,6 +40,6 @@
40
40
  },
41
41
  "scripts": {},
42
42
  "dependencies": {},
43
- "typesPublisherContentHash": "78d310c13a3972336deda896b112192ff27f959bafa64cc5301a8ca7741d9b72",
43
+ "typesPublisherContentHash": "2a71f173bd10c98559cd6a00a42cfa0080cccec0436eabedf35bf93451bc26d6",
44
44
  "typeScriptVersion": "3.8"
45
45
  }