param type correction

This commit is contained in:
Weiran Ye 2024-02-19 22:46:52 -08:00
parent 078ac1c259
commit f2cbe231b8

View file

@ -15,12 +15,12 @@ If you want to overwrite the `source` field in the `JSON` string, you can set `w
**_Signature_**
<pre>
serializeAsJSON(&#123;
serializeAsJSON(
elements: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/element/types.ts#L114">ExcalidrawElement[]</a>,
appState: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L95">AppState</a>,
files: <a href="https://github.com/excalidraw/excalidraw/blob/master/packages/excalidraw/types.ts#L97">BinaryFiles</a>,
type: &quot;local&quot; | &quot;database&quot;
}): string
type: "local" | "database"
): string
</pre>
**How to use**