mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Remove password parameter from workbook protect/unprotect (#9072)
It is not possible to use a password for protection/unprotection via the API.
This commit is contained in:
parent
b7e92198bb
commit
ceb795ce89
8
office-js/office-js.d.ts
vendored
8
office-js/office-js.d.ts
vendored
@ -1743,20 +1743,17 @@ declare namespace Excel {
|
||||
* Protect a worksheet. It throws if the worksheet has been protected.
|
||||
*
|
||||
* @param options sheet protection options.
|
||||
* @param password sheet protection password.
|
||||
*
|
||||
* [Api set: ExcelApi 1.2]
|
||||
*/
|
||||
protect(options?: Excel.WorksheetProtectionOptions, password?: string): void;
|
||||
protect(options?: Excel.WorksheetProtectionOptions): void;
|
||||
/**
|
||||
*
|
||||
* Unprotect a worksheet
|
||||
*
|
||||
* @param password sheet protection password.
|
||||
*
|
||||
* [Api set: ExcelApi 1.2]
|
||||
*/
|
||||
unprotect(password?: string): void;
|
||||
unprotect(): void;
|
||||
/**
|
||||
* Queues up a command to load the specified properties of the object. You must call "context.sync()" before reading the properties.
|
||||
*/
|
||||
@ -8566,7 +8563,6 @@ declare namespace Excel {
|
||||
}
|
||||
namespace ErrorCodes {
|
||||
var accessDenied: string;
|
||||
var badPassword: string;
|
||||
var generalException: string;
|
||||
var insertDeleteConflict: string;
|
||||
var invalidArgument: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user