Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion types/knockout/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
34 changes: 18 additions & 16 deletions types/office-js-preview/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -164451,6 +164451,8 @@ declare namespace Word {
resolved?: boolean;
}
/**
* Represents a content range within a comment.
*
* @remarks
* [Api set: WordApi 1.4]
*/
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand Down
34 changes: 18 additions & 16 deletions types/office-js/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -155372,6 +155372,8 @@ declare namespace Word {
resolved?: boolean;
}
/**
* Represents a content range within a comment.
*
* @remarks
* [Api set: WordApi 1.4]
*/
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand Down