From 8f27dd0c8bbfa48281f23690cffe42f53ddc9c35 Mon Sep 17 00:00:00 2001 From: Weiran Ye Date: Mon, 19 Feb 2024 22:03:15 -0800 Subject: [PATCH] fix docs serializeAsJSON signature --- .../docs/@excalidraw/excalidraw/api/utils/utils-intro.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dev-docs/docs/@excalidraw/excalidraw/api/utils/utils-intro.md b/dev-docs/docs/@excalidraw/excalidraw/api/utils/utils-intro.md index 69bd88a83..b95bdc12a 100644 --- a/dev-docs/docs/@excalidraw/excalidraw/api/utils/utils-intro.md +++ b/dev-docs/docs/@excalidraw/excalidraw/api/utils/utils-intro.md @@ -15,9 +15,11 @@ If you want to overwrite the `source` field in the `JSON` string, you can set `w **_Signature_**
-serializeAsJSON({
  - elements: ExcalidrawElement[],
  - appState: AppState,
+serializeAsJSON({ + elements: ExcalidrawElement[], + appState: AppState, + files: BinaryFiles, + type: "local" | "database" }): string