Browse Source

Update storage options types

pull/4234/head
Ju99ernaut 4 years ago
parent
commit
e805abef2b
  1. 8
      index.d.ts

8
index.d.ts

@ -324,9 +324,9 @@ declare module grapesjs {
recovery?: boolean | Function; recovery?: boolean | Function;
onStore?: (data: any) => any; onStore?: (data: any) => any;
onLoad?: (data: any) => any; onLoad?: (data: any) => any;
options: { options?: {
local: LocalStorageConfig; local?: LocalStorageConfig;
remote: RemoteStorageConfig; remote?: RemoteStorageConfig;
[key: string]: any; [key: string]: any;
}; };
} }
@ -343,7 +343,7 @@ declare module grapesjs {
urlLoad?: string; urlLoad?: string;
contentTypeJson?: boolean; contentTypeJson?: boolean;
credentials?: RequestCredentials; credentials?: RequestCredentials;
fetchOptions: string | ((opts: object) => object); fetchOptions?: string | ((opts: object) => object);
onStore?: (data: any) => any; onStore?: (data: any) => any;
onLoad?: (data: any) => any; onLoad?: (data: any) => any;
} }

Loading…
Cancel
Save