Skip to content

A local-first personal finance app

document api quiet mode (#802)

Matt Fiddaman9a7df9b05d02
diff --git a/docs/api/index.md b/docs/api/index.md
index 813f803e18..1920ab8ec8 100644
--- a/docs/api/index.md
+++ b/docs/api/index.md
@@ -111,7 +111,7 @@ These are the public methods that you can use. The API also exports low-level fu
#### `init`
-<Method name="init" argsObject={true} args={[{ properties: [{ name: 'dataDir', type: 'string' }, { name: 'serverURL', type: 'string' }, { name: 'password', type: 'string' }]}]} returns="Promise<void>" />
+<Method name="init" argsObject={true} args={[{ properties: [{ name: 'dataDir', type: 'string' }, { name: 'serverURL', type: 'string' }, { name: 'password', type: 'string' }, { name: 'verbose', type: 'boolean' }]}]} returns="Promise<void>" />
Call this before attempting to use any of the API methods. This will connect to the server using the provided password and load the budget data.
diff --git a/docs/api/types.js b/docs/api/types.js
index 4cfd4868e8..086e560007 100644
--- a/docs/api/types.js
+++ b/docs/api/types.js
@@ -65,6 +65,15 @@ export let objects = {
</span>
),
},
+ {
+ name: 'verbose',
+ type: 'boolean',
+ description: (
+ <span>
+ Enable/disable logging from actual internals
+ </span>
+ ),
+ },
],
transaction: [