From d64ede8521dd62fb2555d42563d7a41ec03350a7 Mon Sep 17 00:00:00 2001 From: Alex Jerabek <38896772+AlexJerabek@users.noreply.github.com> Date: Fri, 24 May 2019 09:35:51 -0700 Subject: [PATCH] [office-js-preview] Clarifying Range limits when adding comments (#35697) --- types/office-js-preview/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/types/office-js-preview/index.d.ts b/types/office-js-preview/index.d.ts index 96a4e6b81a..05bd08e357 100644 --- a/types/office-js-preview/index.d.ts +++ b/types/office-js-preview/index.d.ts @@ -36091,25 +36091,25 @@ declare namespace Excel { readonly items: Excel.Comment[]; /** * - * Creates a new comment with the given content on the given cell. An invalid argument error is thrown if the provided range is larger than one cell. + * Creates a new comment with the given content on the given cell. An `InvalidArgument` error is thrown if the provided range is larger than one cell. * * [Api set: ExcelApi BETA (PREVIEW ONLY)] * @beta * * @param content The comment content. - * @param cellAddress The cell to which the comment is added. This can be a Range object or a string. If it's a string, it must contain the full address, including the sheet name. + * @param cellAddress The cell to which the comment is added. This can be a Range object or a string. If it's a string, it must contain the full address, including the sheet name. An `InvalidArgument` error is thrown if the provided range is larger than one cell. * @param contentType Optional. The type of the comment content. */ add(content: string, cellAddress: Range | string, contentType?: Excel.ContentType): Excel.Comment; /** * - * Creates a new comment with the given content on the given cell. An invalid argument error is thrown if the provided range is larger than one cell. + * Creates a new comment with the given content on the given cell. An `InvalidArgument` error is thrown if the provided range is larger than one cell. * * [Api set: ExcelApi BETA (PREVIEW ONLY)] * @beta * * @param content The comment content. - * @param cellAddress The cell to which the comment is added. This can be a Range object or a string. If it's a string, it must contain the full address, including the sheet name. + * @param cellAddress The cell to which the comment is added. This can be a Range object or a string. If it's a string, it must contain the full address, including the sheet name. An `InvalidArgument` error is thrown if the provided range is larger than one cell. * @param contentType Optional. The type of the comment content. */ add(content: string, cellAddress: Range | string, contentType?: "Plain"): Excel.Comment;