diff --git a/types/knockout/index.d.ts b/types/knockout/index.d.ts index c160dd758ba3e7..56d5ceda6ccbdc 100644 --- a/types/knockout/index.d.ts +++ b/types/knockout/index.d.ts @@ -1082,7 +1082,13 @@ declare namespace KnockoutComponentTypes { } // viewmodel types - interface ViewModelFunction { + type ViewModelFunction = ViewModelConstructor | ViewModelFactory; + + interface ViewModelConstructor { + new(params?: any): any; + } + + interface ViewModelFactory { (params?: any): any; } diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 2b03c3a5b12545..bcd553cce6be61 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -144418,7 +144418,7 @@ declare namespace Word { unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"; } /** - * Represents the options for the {@link Word.Selection | Selection.next} method. + * Represents the options for the {@link Word.Selection | Selection.getNextRange} method. * * @remarks * [Api set: WordApiDesktop 1.4] @@ -144440,7 +144440,7 @@ declare namespace Word { unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"; } /** - * Represents the options for the {@link Word.Selection | Selection.previous} method. + * Represents the options for the {@link Word.Selection | Selection.getPreviousRange} method. * * @remarks * [Api set: WordApiDesktop 1.4] @@ -149201,7 +149201,7 @@ declare namespace Word { /** An interface for updating data on the `CommentContentRange` object, for use in `commentContentRange.set({ ... })`. */ interface CommentContentRangeUpdateData { /** - * Specifies a value that indicates whether the comment text is bold. + * Specifies whether the comment text is bold. * * @remarks * [Api set: WordApi 1.4] @@ -149215,21 +149215,21 @@ declare namespace Word { */ hyperlink?: string; /** - * Specifies a value that indicates whether the comment text is italicized. + * Specifies whether the comment text is italicized. * * @remarks * [Api set: WordApi 1.4] */ italic?: boolean; /** - * Specifies a value that indicates whether the comment text has a strikethrough. + * Specifies whether the comment text has a strikethrough. * * @remarks * [Api set: WordApi 1.4] */ strikeThrough?: boolean; /** - * Specifies a value that indicates the comment text's underline type. `none` if the comment text isn't underlined. + * Specifies the comment text's underline type. `none` if the comment text isn't underlined. * * @remarks * [Api set: WordApi 1.4] @@ -155005,7 +155005,7 @@ declare namespace Word { */ styleBuiltIn?: Word.BuiltInStyleName | "Other" | "Normal" | "Heading1" | "Heading2" | "Heading3" | "Heading4" | "Heading5" | "Heading6" | "Heading7" | "Heading8" | "Heading9" | "Toc1" | "Toc2" | "Toc3" | "Toc4" | "Toc5" | "Toc6" | "Toc7" | "Toc8" | "Toc9" | "FootnoteText" | "Header" | "Footer" | "Caption" | "FootnoteReference" | "EndnoteReference" | "EndnoteText" | "Title" | "Subtitle" | "Hyperlink" | "Strong" | "Emphasis" | "NoSpacing" | "ListParagraph" | "Quote" | "IntenseQuote" | "SubtleEmphasis" | "IntenseEmphasis" | "SubtleReference" | "IntenseReference" | "BookTitle" | "Bibliography" | "TocHeading" | "TableGrid" | "PlainTable1" | "PlainTable2" | "PlainTable3" | "PlainTable4" | "PlainTable5" | "TableGridLight" | "GridTable1Light" | "GridTable1Light_Accent1" | "GridTable1Light_Accent2" | "GridTable1Light_Accent3" | "GridTable1Light_Accent4" | "GridTable1Light_Accent5" | "GridTable1Light_Accent6" | "GridTable2" | "GridTable2_Accent1" | "GridTable2_Accent2" | "GridTable2_Accent3" | "GridTable2_Accent4" | "GridTable2_Accent5" | "GridTable2_Accent6" | "GridTable3" | "GridTable3_Accent1" | "GridTable3_Accent2" | "GridTable3_Accent3" | "GridTable3_Accent4" | "GridTable3_Accent5" | "GridTable3_Accent6" | "GridTable4" | "GridTable4_Accent1" | "GridTable4_Accent2" | "GridTable4_Accent3" | "GridTable4_Accent4" | "GridTable4_Accent5" | "GridTable4_Accent6" | "GridTable5Dark" | "GridTable5Dark_Accent1" | "GridTable5Dark_Accent2" | "GridTable5Dark_Accent3" | "GridTable5Dark_Accent4" | "GridTable5Dark_Accent5" | "GridTable5Dark_Accent6" | "GridTable6Colorful" | "GridTable6Colorful_Accent1" | "GridTable6Colorful_Accent2" | "GridTable6Colorful_Accent3" | "GridTable6Colorful_Accent4" | "GridTable6Colorful_Accent5" | "GridTable6Colorful_Accent6" | "GridTable7Colorful" | "GridTable7Colorful_Accent1" | "GridTable7Colorful_Accent2" | "GridTable7Colorful_Accent3" | "GridTable7Colorful_Accent4" | "GridTable7Colorful_Accent5" | "GridTable7Colorful_Accent6" | "ListTable1Light" | "ListTable1Light_Accent1" | "ListTable1Light_Accent2" | "ListTable1Light_Accent3" | "ListTable1Light_Accent4" | "ListTable1Light_Accent5" | "ListTable1Light_Accent6" | "ListTable2" | "ListTable2_Accent1" | "ListTable2_Accent2" | "ListTable2_Accent3" | "ListTable2_Accent4" | "ListTable2_Accent5" | "ListTable2_Accent6" | "ListTable3" | "ListTable3_Accent1" | "ListTable3_Accent2" | "ListTable3_Accent3" | "ListTable3_Accent4" | "ListTable3_Accent5" | "ListTable3_Accent6" | "ListTable4" | "ListTable4_Accent1" | "ListTable4_Accent2" | "ListTable4_Accent3" | "ListTable4_Accent4" | "ListTable4_Accent5" | "ListTable4_Accent6" | "ListTable5Dark" | "ListTable5Dark_Accent1" | "ListTable5Dark_Accent2" | "ListTable5Dark_Accent3" | "ListTable5Dark_Accent4" | "ListTable5Dark_Accent5" | "ListTable5Dark_Accent6" | "ListTable6Colorful" | "ListTable6Colorful_Accent1" | "ListTable6Colorful_Accent2" | "ListTable6Colorful_Accent3" | "ListTable6Colorful_Accent4" | "ListTable6Colorful_Accent5" | "ListTable6Colorful_Accent6" | "ListTable7Colorful" | "ListTable7Colorful_Accent1" | "ListTable7Colorful_Accent2" | "ListTable7Colorful_Accent3" | "ListTable7Colorful_Accent4" | "ListTable7Colorful_Accent5" | "ListTable7Colorful_Accent6"; /** - * Gets the text of the body. Use the insertText method to insert text. + * Gets the text of the body. Use the `insertText` method to insert text. * * @remarks * [Api set: WordApi 1.1] @@ -155443,7 +155443,7 @@ declare namespace Word { /** An interface describing the data returned by calling `commentContentRange.toJSON()`. */ interface CommentContentRangeData { /** - * Specifies a value that indicates whether the comment text is bold. + * Specifies whether the comment text is bold. * * @remarks * [Api set: WordApi 1.4] @@ -155464,14 +155464,14 @@ declare namespace Word { */ isEmpty?: boolean; /** - * Specifies a value that indicates whether the comment text is italicized. + * Specifies whether the comment text is italicized. * * @remarks * [Api set: WordApi 1.4] */ italic?: boolean; /** - * Specifies a value that indicates whether the comment text has a strikethrough. + * Specifies whether the comment text has a strikethrough. * * @remarks * [Api set: WordApi 1.4] @@ -155485,7 +155485,7 @@ declare namespace Word { */ text?: string; /** - * Specifies a value that indicates the comment text's underline type. `none` if the comment text isn't underlined. + * Specifies the comment text's underline type. `none` if the comment text isn't underlined. * * @remarks * [Api set: WordApi 1.4] @@ -163662,7 +163662,7 @@ declare namespace Word { */ styleBuiltIn?: boolean; /** - * Gets the text of the body. Use the insertText method to insert text. + * Gets the text of the body. Use the `insertText` method to insert text. * * @remarks * [Api set: WordApi 1.1] @@ -164451,6 +164451,8 @@ declare namespace Word { resolved?: boolean; } /** + * Represents a content range within a comment. + * * @remarks * [Api set: WordApi 1.4] */ @@ -164460,7 +164462,7 @@ declare namespace Word { */ $all?: boolean; /** - * Specifies a value that indicates whether the comment text is bold. + * Specifies whether the comment text is bold. * * @remarks * [Api set: WordApi 1.4] @@ -164481,14 +164483,14 @@ declare namespace Word { */ isEmpty?: boolean; /** - * Specifies a value that indicates whether the comment text is italicized. + * Specifies whether the comment text is italicized. * * @remarks * [Api set: WordApi 1.4] */ italic?: boolean; /** - * Specifies a value that indicates whether the comment text has a strikethrough. + * Specifies whether the comment text has a strikethrough. * * @remarks * [Api set: WordApi 1.4] @@ -164502,7 +164504,7 @@ declare namespace Word { */ text?: boolean; /** - * Specifies a value that indicates the comment text's underline type. `none` if the comment text isn't underlined. + * Specifies the comment text's underline type. `none` if the comment text isn't underlined. * * @remarks * [Api set: WordApi 1.4] diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 1f2b2ee8138fd2..54786c69d1229a 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -135623,7 +135623,7 @@ declare namespace Word { unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"; } /** - * Represents the options for the {@link Word.Selection | Selection.next} method. + * Represents the options for the {@link Word.Selection | Selection.getNextRange} method. * * @remarks * [Api set: WordApiDesktop 1.4] @@ -135645,7 +135645,7 @@ declare namespace Word { unit?: Word.OperationUnit | "Character" | "Word" | "Sentence" | "Paragraph" | "Line" | "Story" | "Screen" | "Section" | "Column" | "Row" | "Window" | "Cell" | "CharacterFormat" | "ParagraphFormat" | "Table" | "Item"; } /** - * Represents the options for the {@link Word.Selection | Selection.previous} method. + * Represents the options for the {@link Word.Selection | Selection.getPreviousRange} method. * * @remarks * [Api set: WordApiDesktop 1.4] @@ -140264,7 +140264,7 @@ declare namespace Word { /** An interface for updating data on the `CommentContentRange` object, for use in `commentContentRange.set({ ... })`. */ interface CommentContentRangeUpdateData { /** - * Specifies a value that indicates whether the comment text is bold. + * Specifies whether the comment text is bold. * * @remarks * [Api set: WordApi 1.4] @@ -140278,21 +140278,21 @@ declare namespace Word { */ hyperlink?: string; /** - * Specifies a value that indicates whether the comment text is italicized. + * Specifies whether the comment text is italicized. * * @remarks * [Api set: WordApi 1.4] */ italic?: boolean; /** - * Specifies a value that indicates whether the comment text has a strikethrough. + * Specifies whether the comment text has a strikethrough. * * @remarks * [Api set: WordApi 1.4] */ strikeThrough?: boolean; /** - * Specifies a value that indicates the comment text's underline type. `none` if the comment text isn't underlined. + * Specifies the comment text's underline type. `none` if the comment text isn't underlined. * * @remarks * [Api set: WordApi 1.4] @@ -146029,7 +146029,7 @@ declare namespace Word { */ styleBuiltIn?: Word.BuiltInStyleName | "Other" | "Normal" | "Heading1" | "Heading2" | "Heading3" | "Heading4" | "Heading5" | "Heading6" | "Heading7" | "Heading8" | "Heading9" | "Toc1" | "Toc2" | "Toc3" | "Toc4" | "Toc5" | "Toc6" | "Toc7" | "Toc8" | "Toc9" | "FootnoteText" | "Header" | "Footer" | "Caption" | "FootnoteReference" | "EndnoteReference" | "EndnoteText" | "Title" | "Subtitle" | "Hyperlink" | "Strong" | "Emphasis" | "NoSpacing" | "ListParagraph" | "Quote" | "IntenseQuote" | "SubtleEmphasis" | "IntenseEmphasis" | "SubtleReference" | "IntenseReference" | "BookTitle" | "Bibliography" | "TocHeading" | "TableGrid" | "PlainTable1" | "PlainTable2" | "PlainTable3" | "PlainTable4" | "PlainTable5" | "TableGridLight" | "GridTable1Light" | "GridTable1Light_Accent1" | "GridTable1Light_Accent2" | "GridTable1Light_Accent3" | "GridTable1Light_Accent4" | "GridTable1Light_Accent5" | "GridTable1Light_Accent6" | "GridTable2" | "GridTable2_Accent1" | "GridTable2_Accent2" | "GridTable2_Accent3" | "GridTable2_Accent4" | "GridTable2_Accent5" | "GridTable2_Accent6" | "GridTable3" | "GridTable3_Accent1" | "GridTable3_Accent2" | "GridTable3_Accent3" | "GridTable3_Accent4" | "GridTable3_Accent5" | "GridTable3_Accent6" | "GridTable4" | "GridTable4_Accent1" | "GridTable4_Accent2" | "GridTable4_Accent3" | "GridTable4_Accent4" | "GridTable4_Accent5" | "GridTable4_Accent6" | "GridTable5Dark" | "GridTable5Dark_Accent1" | "GridTable5Dark_Accent2" | "GridTable5Dark_Accent3" | "GridTable5Dark_Accent4" | "GridTable5Dark_Accent5" | "GridTable5Dark_Accent6" | "GridTable6Colorful" | "GridTable6Colorful_Accent1" | "GridTable6Colorful_Accent2" | "GridTable6Colorful_Accent3" | "GridTable6Colorful_Accent4" | "GridTable6Colorful_Accent5" | "GridTable6Colorful_Accent6" | "GridTable7Colorful" | "GridTable7Colorful_Accent1" | "GridTable7Colorful_Accent2" | "GridTable7Colorful_Accent3" | "GridTable7Colorful_Accent4" | "GridTable7Colorful_Accent5" | "GridTable7Colorful_Accent6" | "ListTable1Light" | "ListTable1Light_Accent1" | "ListTable1Light_Accent2" | "ListTable1Light_Accent3" | "ListTable1Light_Accent4" | "ListTable1Light_Accent5" | "ListTable1Light_Accent6" | "ListTable2" | "ListTable2_Accent1" | "ListTable2_Accent2" | "ListTable2_Accent3" | "ListTable2_Accent4" | "ListTable2_Accent5" | "ListTable2_Accent6" | "ListTable3" | "ListTable3_Accent1" | "ListTable3_Accent2" | "ListTable3_Accent3" | "ListTable3_Accent4" | "ListTable3_Accent5" | "ListTable3_Accent6" | "ListTable4" | "ListTable4_Accent1" | "ListTable4_Accent2" | "ListTable4_Accent3" | "ListTable4_Accent4" | "ListTable4_Accent5" | "ListTable4_Accent6" | "ListTable5Dark" | "ListTable5Dark_Accent1" | "ListTable5Dark_Accent2" | "ListTable5Dark_Accent3" | "ListTable5Dark_Accent4" | "ListTable5Dark_Accent5" | "ListTable5Dark_Accent6" | "ListTable6Colorful" | "ListTable6Colorful_Accent1" | "ListTable6Colorful_Accent2" | "ListTable6Colorful_Accent3" | "ListTable6Colorful_Accent4" | "ListTable6Colorful_Accent5" | "ListTable6Colorful_Accent6" | "ListTable7Colorful" | "ListTable7Colorful_Accent1" | "ListTable7Colorful_Accent2" | "ListTable7Colorful_Accent3" | "ListTable7Colorful_Accent4" | "ListTable7Colorful_Accent5" | "ListTable7Colorful_Accent6"; /** - * Gets the text of the body. Use the insertText method to insert text. + * Gets the text of the body. Use the `insertText` method to insert text. * * @remarks * [Api set: WordApi 1.1] @@ -146467,7 +146467,7 @@ declare namespace Word { /** An interface describing the data returned by calling `commentContentRange.toJSON()`. */ interface CommentContentRangeData { /** - * Specifies a value that indicates whether the comment text is bold. + * Specifies whether the comment text is bold. * * @remarks * [Api set: WordApi 1.4] @@ -146488,14 +146488,14 @@ declare namespace Word { */ isEmpty?: boolean; /** - * Specifies a value that indicates whether the comment text is italicized. + * Specifies whether the comment text is italicized. * * @remarks * [Api set: WordApi 1.4] */ italic?: boolean; /** - * Specifies a value that indicates whether the comment text has a strikethrough. + * Specifies whether the comment text has a strikethrough. * * @remarks * [Api set: WordApi 1.4] @@ -146509,7 +146509,7 @@ declare namespace Word { */ text?: string; /** - * Specifies a value that indicates the comment text's underline type. `none` if the comment text isn't underlined. + * Specifies the comment text's underline type. `none` if the comment text isn't underlined. * * @remarks * [Api set: WordApi 1.4] @@ -154583,7 +154583,7 @@ declare namespace Word { */ styleBuiltIn?: boolean; /** - * Gets the text of the body. Use the insertText method to insert text. + * Gets the text of the body. Use the `insertText` method to insert text. * * @remarks * [Api set: WordApi 1.1] @@ -155372,6 +155372,8 @@ declare namespace Word { resolved?: boolean; } /** + * Represents a content range within a comment. + * * @remarks * [Api set: WordApi 1.4] */ @@ -155381,7 +155383,7 @@ declare namespace Word { */ $all?: boolean; /** - * Specifies a value that indicates whether the comment text is bold. + * Specifies whether the comment text is bold. * * @remarks * [Api set: WordApi 1.4] @@ -155402,14 +155404,14 @@ declare namespace Word { */ isEmpty?: boolean; /** - * Specifies a value that indicates whether the comment text is italicized. + * Specifies whether the comment text is italicized. * * @remarks * [Api set: WordApi 1.4] */ italic?: boolean; /** - * Specifies a value that indicates whether the comment text has a strikethrough. + * Specifies whether the comment text has a strikethrough. * * @remarks * [Api set: WordApi 1.4] @@ -155423,7 +155425,7 @@ declare namespace Word { */ text?: boolean; /** - * Specifies a value that indicates the comment text's underline type. `none` if the comment text isn't underlined. + * Specifies the comment text's underline type. `none` if the comment text isn't underlined. * * @remarks * [Api set: WordApi 1.4]