Skip to content

Commit fc75638

Browse files
[office-js] [office-js-preview] (PowerPoint) Updates from CDN (DefinitelyTyped#71755)
1 parent 0bde9c6 commit fc75638

File tree

2 files changed

+84
-84
lines changed

2 files changed

+84
-84
lines changed

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

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -131061,47 +131061,47 @@ declare namespace PowerPoint {
131061131061
/** The request context associated with the object. This connects the add-in's process to the Office host application's process. */
131062131062
context: RequestContext;
131063131063
/**
131064-
* Represents the bold status of font. Returns `null` if the `TextRange` includes both bold and non-bold text fragments.
131064+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
131065131065
*
131066131066
* @remarks
131067131067
* [Api set: PowerPointApi 1.4]
131068131068
*/
131069-
bold: boolean;
131069+
bold: boolean | null;
131070131070
/**
131071-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` includes text fragments with different colors.
131071+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
131072131072
*
131073131073
* @remarks
131074131074
* [Api set: PowerPointApi 1.4]
131075131075
*/
131076-
color: string;
131076+
color: string | null;
131077131077
/**
131078-
* Represents the italic status of font. Returns 'null' if the 'TextRange' includes both italic and non-italic text fragments.
131078+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
131079131079
*
131080131080
* @remarks
131081131081
* [Api set: PowerPointApi 1.4]
131082131082
*/
131083-
italic: boolean;
131083+
italic: boolean | null;
131084131084
/**
131085-
* Represents font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name.
131085+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
131086131086
*
131087131087
* @remarks
131088131088
* [Api set: PowerPointApi 1.4]
131089131089
*/
131090-
name: string;
131090+
name: string | null;
131091131091
/**
131092-
* Represents font size in points (e.g., 11). Returns null if the TextRange includes text fragments with different font sizes.
131092+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
131093131093
*
131094131094
* @remarks
131095131095
* [Api set: PowerPointApi 1.4]
131096131096
*/
131097-
size: number;
131097+
size: number | null;
131098131098
/**
131099-
* Type of underline applied to the font. Returns `null` if the `TextRange` includes text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
131099+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
131100131100
*
131101131101
* @remarks
131102131102
* [Api set: PowerPointApi 1.4]
131103131103
*/
131104-
underline: PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble";
131104+
underline: ShapeFontUnderlineStyle | null;
131105131105
/**
131106131106
* Queues up a command to load the specified properties of the object. You must call `context.sync()` before reading the properties.
131107131107
*
@@ -133574,47 +133574,47 @@ declare namespace PowerPoint {
133574133574
/** An interface for updating data on the `ShapeFont` object, for use in `shapeFont.set({ ... })`. */
133575133575
interface ShapeFontUpdateData {
133576133576
/**
133577-
* Represents the bold status of font. Returns `null` if the `TextRange` includes both bold and non-bold text fragments.
133577+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
133578133578
*
133579133579
* @remarks
133580133580
* [Api set: PowerPointApi 1.4]
133581133581
*/
133582-
bold?: boolean;
133582+
bold?: boolean | null;
133583133583
/**
133584-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` includes text fragments with different colors.
133584+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
133585133585
*
133586133586
* @remarks
133587133587
* [Api set: PowerPointApi 1.4]
133588133588
*/
133589-
color?: string;
133589+
color?: string | null;
133590133590
/**
133591-
* Represents the italic status of font. Returns 'null' if the 'TextRange' includes both italic and non-italic text fragments.
133591+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
133592133592
*
133593133593
* @remarks
133594133594
* [Api set: PowerPointApi 1.4]
133595133595
*/
133596-
italic?: boolean;
133596+
italic?: boolean | null;
133597133597
/**
133598-
* Represents font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name.
133598+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
133599133599
*
133600133600
* @remarks
133601133601
* [Api set: PowerPointApi 1.4]
133602133602
*/
133603-
name?: string;
133603+
name?: string | null;
133604133604
/**
133605-
* Represents font size in points (e.g., 11). Returns null if the TextRange includes text fragments with different font sizes.
133605+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
133606133606
*
133607133607
* @remarks
133608133608
* [Api set: PowerPointApi 1.4]
133609133609
*/
133610-
size?: number;
133610+
size?: number | null;
133611133611
/**
133612-
* Type of underline applied to the font. Returns `null` if the `TextRange` includes text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
133612+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
133613133613
*
133614133614
* @remarks
133615133615
* [Api set: PowerPointApi 1.4]
133616133616
*/
133617-
underline?: PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble";
133617+
underline?: ShapeFontUnderlineStyle | null;
133618133618
}
133619133619
/** An interface for updating data on the `ShapeCollection` object, for use in `shapeCollection.set({ ... })`. */
133620133620
interface ShapeCollectionUpdateData {
@@ -134000,47 +134000,47 @@ declare namespace PowerPoint {
134000134000
/** An interface describing the data returned by calling `shapeFont.toJSON()`. */
134001134001
interface ShapeFontData {
134002134002
/**
134003-
* Represents the bold status of font. Returns `null` if the `TextRange` includes both bold and non-bold text fragments.
134003+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
134004134004
*
134005134005
* @remarks
134006134006
* [Api set: PowerPointApi 1.4]
134007134007
*/
134008-
bold?: boolean;
134008+
bold?: boolean | null;
134009134009
/**
134010-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` includes text fragments with different colors.
134010+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
134011134011
*
134012134012
* @remarks
134013134013
* [Api set: PowerPointApi 1.4]
134014134014
*/
134015-
color?: string;
134015+
color?: string | null;
134016134016
/**
134017-
* Represents the italic status of font. Returns 'null' if the 'TextRange' includes both italic and non-italic text fragments.
134017+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
134018134018
*
134019134019
* @remarks
134020134020
* [Api set: PowerPointApi 1.4]
134021134021
*/
134022-
italic?: boolean;
134022+
italic?: boolean | null;
134023134023
/**
134024-
* Represents font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name.
134024+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
134025134025
*
134026134026
* @remarks
134027134027
* [Api set: PowerPointApi 1.4]
134028134028
*/
134029-
name?: string;
134029+
name?: string | null;
134030134030
/**
134031-
* Represents font size in points (e.g., 11). Returns null if the TextRange includes text fragments with different font sizes.
134031+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
134032134032
*
134033134033
* @remarks
134034134034
* [Api set: PowerPointApi 1.4]
134035134035
*/
134036-
size?: number;
134036+
size?: number | null;
134037134037
/**
134038-
* Type of underline applied to the font. Returns `null` if the `TextRange` includes text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
134038+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
134039134039
*
134040134040
* @remarks
134041134041
* [Api set: PowerPointApi 1.4]
134042134042
*/
134043-
underline?: PowerPoint.ShapeFontUnderlineStyle | "None" | "Single" | "Double" | "Heavy" | "Dotted" | "DottedHeavy" | "Dash" | "DashHeavy" | "DashLong" | "DashLongHeavy" | "DotDash" | "DotDashHeavy" | "DotDotDash" | "DotDotDashHeavy" | "Wavy" | "WavyHeavy" | "WavyDouble";
134043+
underline?: ShapeFontUnderlineStyle | null;
134044134044
}
134045134045
/** An interface describing the data returned by calling `shapeCollection.toJSON()`. */
134046134046
interface ShapeCollectionData {
@@ -134685,42 +134685,42 @@ declare namespace PowerPoint {
134685134685
*/
134686134686
$all?: boolean;
134687134687
/**
134688-
* Represents the bold status of font. Returns `null` if the `TextRange` includes both bold and non-bold text fragments.
134688+
* Specifies the bold status of font. Returns `null` if the `TextRange` contains both bold and non-bold text fragments.
134689134689
*
134690134690
* @remarks
134691134691
* [Api set: PowerPointApi 1.4]
134692134692
*/
134693134693
bold?: boolean;
134694134694
/**
134695-
* HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` includes text fragments with different colors.
134695+
* Specifies the HTML color code representation of the text color (e.g., "#FF0000" represents red). Returns `null` if the `TextRange` contains text fragments with different colors.
134696134696
*
134697134697
* @remarks
134698134698
* [Api set: PowerPointApi 1.4]
134699134699
*/
134700134700
color?: boolean;
134701134701
/**
134702-
* Represents the italic status of font. Returns 'null' if the 'TextRange' includes both italic and non-italic text fragments.
134702+
* Specifies the italic status of font. Returns 'null' if the 'TextRange' contains both italic and non-italic text fragments.
134703134703
*
134704134704
* @remarks
134705134705
* [Api set: PowerPointApi 1.4]
134706134706
*/
134707134707
italic?: boolean;
134708134708
/**
134709-
* Represents font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name.
134709+
* Specifies the font name (e.g., "Calibri"). If the text is a Complex Script or East Asian language, this is the corresponding font name; otherwise it is the Latin font name. Returns `null` if the `TextRange` contains text fragments with different font names.
134710134710
*
134711134711
* @remarks
134712134712
* [Api set: PowerPointApi 1.4]
134713134713
*/
134714134714
name?: boolean;
134715134715
/**
134716-
* Represents font size in points (e.g., 11). Returns null if the TextRange includes text fragments with different font sizes.
134716+
* Specifies the font size in points (e.g., 11). Returns `null` if the `TextRange` contains text fragments with different font sizes.
134717134717
*
134718134718
* @remarks
134719134719
* [Api set: PowerPointApi 1.4]
134720134720
*/
134721134721
size?: boolean;
134722134722
/**
134723-
* Type of underline applied to the font. Returns `null` if the `TextRange` includes text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
134723+
* Specifies the type of underline applied to the font. Returns `null` if the `TextRange` contains text fragments with different underline styles. See {@link PowerPoint.ShapeFontUnderlineStyle} for details.
134724134724
*
134725134725
* @remarks
134726134726
* [Api set: PowerPointApi 1.4]

0 commit comments

Comments
 (0)