Skip to content

Commit 0d0760e

Browse files
authored
[office-js, office-js-preview] Fix office-js and office-js-preview tests with enum literals (DefinitelyTyped#74561)
1 parent 520bcb7 commit 0d0760e

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

types/office-js-preview/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -434,50 +434,50 @@ declare namespace Office {
434434
/**
435435
* Return or set data as text (string). Data is returned or set as a one-dimensional run of characters.
436436
*/
437-
Text,
437+
Text = "text",
438438
/**
439439
* Return or set data as tabular data with no headers. Data is returned or set as an array of arrays containing one-dimensional runs of
440440
* characters. For example, three rows of string values in two columns would be: [["R1C1", "R1C2"], ["R2C1", "R2C2"], ["R3C1", "R3C2"]].
441441
*
442442
* **Note**: Only applies to data in Excel and Word.
443443
*/
444-
Matrix,
444+
Matrix = "matrix",
445445
/**
446446
* Return or set data as tabular data with optional headers. Data is returned or set as an array of arrays with optional headers.
447447
*
448448
* **Note**: Only applies to data in Excel and Word.
449449
*/
450-
Table,
450+
Table = "table",
451451
/**
452452
* Return or set data as HTML.
453453
*
454454
* **Note**: Only applies to data in add-ins for Word and Outlook add-ins for Outlook (compose mode).
455455
*/
456-
Html,
456+
Html = "html",
457457
/**
458458
* Return or set data as Office Open XML.
459459
*
460460
* **Note**: Only applies to data in Word.
461461
*/
462-
Ooxml,
462+
Ooxml = "ooxml",
463463
/**
464464
* Return a JSON object that contains an array of the IDs, titles, and indexes of the selected slides. For example,
465465
* `{"slides":[{"id":257,"title":"Slide 2","index":2},{"id":256,"title":"Slide 1","index":1}]}` for a selection of two slides.
466466
*
467467
* **Note**: Only applies to data in PowerPoint when calling the {@link Office.Document | Document}.getSelectedDataAsync method to get the current
468468
* slide or selected range of slides.
469469
*/
470-
SlideRange,
470+
SlideRange = "slideRange",
471471
/**
472472
* Data is returned or set as an image stream.
473473
* **Note**: Only applies to data in Excel, Word, and PowerPoint.
474474
*/
475-
Image,
475+
Image = "image",
476476
/**
477477
* Data is returned or set as XML data containing an SVG image.
478478
* **Note**: Only applies to data in Excel, Word, and PowerPoint.
479479
*/
480-
XmlSvg
480+
XmlSvg = "xmlSvg"
481481
}
482482
/**
483483
* Specifies the type of the XML node.

types/office-js/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -434,50 +434,50 @@ declare namespace Office {
434434
/**
435435
* Return or set data as text (string). Data is returned or set as a one-dimensional run of characters.
436436
*/
437-
Text,
437+
Text = "text",
438438
/**
439439
* Return or set data as tabular data with no headers. Data is returned or set as an array of arrays containing one-dimensional runs of
440440
* characters. For example, three rows of string values in two columns would be: [["R1C1", "R1C2"], ["R2C1", "R2C2"], ["R3C1", "R3C2"]].
441441
*
442442
* **Note**: Only applies to data in Excel and Word.
443443
*/
444-
Matrix,
444+
Matrix = "matrix",
445445
/**
446446
* Return or set data as tabular data with optional headers. Data is returned or set as an array of arrays with optional headers.
447447
*
448448
* **Note**: Only applies to data in Excel and Word.
449449
*/
450-
Table,
450+
Table = "table",
451451
/**
452452
* Return or set data as HTML.
453453
*
454454
* **Note**: Only applies to data in add-ins for Word and Outlook add-ins for Outlook (compose mode).
455455
*/
456-
Html,
456+
Html = "html",
457457
/**
458458
* Return or set data as Office Open XML.
459459
*
460460
* **Note**: Only applies to data in Word.
461461
*/
462-
Ooxml,
462+
Ooxml = "ooxml",
463463
/**
464464
* Return a JSON object that contains an array of the IDs, titles, and indexes of the selected slides. For example,
465465
* `{"slides":[{"id":257,"title":"Slide 2","index":2},{"id":256,"title":"Slide 1","index":1}]}` for a selection of two slides.
466466
*
467467
* **Note**: Only applies to data in PowerPoint when calling the {@link Office.Document | Document}.getSelectedDataAsync method to get the current
468468
* slide or selected range of slides.
469469
*/
470-
SlideRange,
470+
SlideRange = "slideRange",
471471
/**
472472
* Data is returned or set as an image stream.
473473
* **Note**: Only applies to data in Excel, Word, and PowerPoint.
474474
*/
475-
Image,
475+
Image = "image",
476476
/**
477477
* Data is returned or set as XML data containing an SVG image.
478478
* **Note**: Only applies to data in Excel, Word, and PowerPoint.
479479
*/
480-
XmlSvg
480+
XmlSvg = "xmlSvg"
481481
}
482482
/**
483483
* Specifies the type of the XML node.

0 commit comments

Comments
 (0)