diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 544244033d..a23df780aa 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -9898,15 +9898,11 @@ declare namespace Excel { * Copy a worksheet and place it at the specified position. Return the copied worksheet. * * [Api set: ExcelApi 1.7] + * + * @param positionType Specifies where to put the copy relative to the worksheet specified in relativeTo param. Can be Excel.WorksheetPositionType or string equivalent. Must not be Excel.WorksheetPositionType.none or "None". + * @param relativeTo Specifies the worksheet that is the basis for intepreting the positionType param. If not specified, the worksheet on which the copy() is called is assumed. */ - copy(positionType?: Excel.WorksheetPositionType, relativeTo?: Excel.Worksheet): Excel.Worksheet; - /** - * - * Copy a worksheet and place it at the specified position. Return the copied worksheet. - * - * [Api set: ExcelApi 1.7] - */ - copy(positionType?: "None" | "Before" | "After" | "Beginning" | "End", relativeTo?: Excel.Worksheet): Excel.Worksheet; + copy(positionType?: Excel.WorksheetPositionType | string, relativeTo?: Excel.Worksheet): Excel.Worksheet; /** * * Deletes the worksheet from the workbook.