From e805abef2ba81d689b783e5fb009b4ee87a09e73 Mon Sep 17 00:00:00 2001 From: Ju99ernaut <48953676+Ju99ernaut@users.noreply.github.com> Date: Sat, 2 Apr 2022 09:37:11 +0200 Subject: [PATCH] Update storage options types --- index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.d.ts b/index.d.ts index a4029883f..606824f54 100644 --- a/index.d.ts +++ b/index.d.ts @@ -324,9 +324,9 @@ declare module grapesjs { recovery?: boolean | Function; onStore?: (data: any) => any; onLoad?: (data: any) => any; - options: { - local: LocalStorageConfig; - remote: RemoteStorageConfig; + options?: { + local?: LocalStorageConfig; + remote?: RemoteStorageConfig; [key: string]: any; }; } @@ -343,7 +343,7 @@ declare module grapesjs { urlLoad?: string; contentTypeJson?: boolean; credentials?: RequestCredentials; - fetchOptions: string | ((opts: object) => object); + fetchOptions?: string | ((opts: object) => object); onStore?: (data: any) => any; onLoad?: (data: any) => any; }