From f3b69040fc4c101904e142c8a1cd97621ec04879 Mon Sep 17 00:00:00 2001 From: cosmonovallc Date: Wed, 21 Aug 2019 11:12:44 +0300 Subject: [PATCH 1/2] Update index.d.ts --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 2b9759753..b2bb46060 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1151,8 +1151,8 @@ export interface Worksheet { /** * Worksheet protection */ - protect(password: string, options: Partial); - unprotect(); + protect(password: string, options: Partial): void; + unprotect(): void; } export interface WorksheetProperties { From c1f25b7b3d6210c5b509bcddc7af2ca1909895ec Mon Sep 17 00:00:00 2001 From: yarik Date: Wed, 28 Aug 2019 11:32:22 +0300 Subject: [PATCH 2/2] type --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index b2bb46060..0fac30ee0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1151,7 +1151,7 @@ export interface Worksheet { /** * Worksheet protection */ - protect(password: string, options: Partial): void; + protect(password: string, options: Partial): Promise; unprotect(): void; }