Skip to content

Commit 907b186

Browse files
committed
[docs] Bump
1 parent 5933b1b commit 907b186

File tree

68 files changed

+720
-375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+720
-375
lines changed

docs/api/all.html

Lines changed: 133 additions & 29 deletions
Large diffs are not rendered by default.

docs/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/persister-automerge/"><code>persister-automerge</code></a></li><li><a href="/api/persister-automerge/interfaces/">Interfaces</a></li><li><a href="/api/persister-automerge/interfaces/persister/automergepersister/"><code>AutomergePersister</code></a></li><li><a href="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/">Lifecycle methods</a></li><li><a href="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/"><code>schedule</code></a></li></ul></nav><section class="s1" id="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/" data-id="s4"><h1><code>schedule</code></h1><p>The <code>schedule</code> method allows you to queue up a series of asynchronous actions that must run in sequence during persistence.</p><pre><code><span class="function"><a href="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/">schedule</a></span><span class="punctuation">(</span>actions<span class="operator">:</span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">[</span><span class="punctuation">]</span><span class="punctuation">)</span><span class="operator">:</span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-automerge/interfaces/persister/automergepersister/">AutomergePersister</a></span><span class="operator">></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>actions</code></th><td><code><span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">[</span><span class="punctuation">]</span></code></td><td></td></tr><tr><th class="right">returns</th><td><code><span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-automerge/interfaces/persister/automergepersister/">AutomergePersister</a></span><span class="operator">></span></code></td><td><p></p><p>A reference to the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object.</p><p></p></td></tr></table></div><p>For example, a database <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> may need to ensure that multiple asynchronous tasks to check and update the database schema are completed before data is written to it. Therefore it&#x27;s most likely you will be using this method inside your <code>setPersisted</code> implementation.</p><p>Call this method to add a single asynchronous action, or a sequence of them in one call. This will also start to run the first task in the queue (which once complete will then run the next, and so on), and so this method itself is also asynchronous and returns a promise of the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a>.</p><section class="s2"><h2>Example</h2><p>This example creates a custom <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object against a newly-created <a href="/api/store/interfaces/store/store/"><code>Store</code></a> and then sequences two tasks in order to update its data on a hypothetical remote system.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>
1+
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/persister-automerge/"><code>persister-automerge</code></a></li><li><a href="/api/persister-automerge/interfaces/">Interfaces</a></li><li><a href="/api/persister-automerge/interfaces/persister/automergepersister/"><code>AutomergePersister</code></a></li><li><a href="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/">Lifecycle methods</a></li><li><a href="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/"><code>schedule</code></a></li></ul></nav><section class="s1" id="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/" data-id="s4"><h1><code>schedule</code></h1><p>The <code>schedule</code> method allows you to queue up a series of asynchronous actions that must run in sequence during persistence.</p><pre><code><span class="function"><a href="/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/">schedule</a></span><span class="punctuation">(</span>actions<span class="operator">:</span> <span class="punctuation">(</span><span class="punctuation">(</span><span class="punctuation">)</span> <span class="operator">=></span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">)</span><span class="punctuation">[</span><span class="punctuation">]</span><span class="punctuation">)</span><span class="operator">:</span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-automerge/interfaces/persister/automergepersister/">AutomergePersister</a></span><span class="operator">></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>actions</code></th><td><code><span class="punctuation">(</span><span class="punctuation">(</span><span class="punctuation">)</span> <span class="operator">=></span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">)</span><span class="punctuation">[</span><span class="punctuation">]</span></code></td><td><p>One or many functions which will be scheduled, and which can be asynchronous.</p></td></tr><tr><th class="right">returns</th><td><code><span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-automerge/interfaces/persister/automergepersister/">AutomergePersister</a></span><span class="operator">></span></code></td><td><p></p><p>A reference to the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object.</p><p></p></td></tr></table></div><p>For example, a database <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> may need to ensure that multiple asynchronous tasks to check and update the database schema are completed before data is written to it. Therefore it&#x27;s most likely you will be using this method inside your <code>setPersisted</code> implementation.</p><p>Call this method to add a single asynchronous action, or a sequence of them in one call. This will also start to run the first task in the queue (which once complete will then run the next, and so on), and so this method itself is also asynchronous and returns a promise of the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a>.</p><section class="s2"><h2>Example</h2><p>This example creates a custom <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object against a newly-created <a href="/api/store/interfaces/store/store/"><code>Store</code></a> and then sequences two tasks in order to update its data on a hypothetical remote system.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>
22
checkRemoteSystemIsReady<span class="punctuation">,</span>
33
getDataFromRemoteSystem<span class="punctuation">,</span>
44
sendDataToRemoteSystem<span class="punctuation">,</span>

docs/api/persister-automerge/interfaces/persister/automergepersister/methods/lifecycle/schedule/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/article.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/persister-browser/"><code>persister-browser</code></a></li><li><a href="/api/persister-browser/interfaces/">Interfaces</a></li><li><a href="/api/persister-browser/interfaces/persister/localpersister/"><code>LocalPersister</code></a></li><li><a href="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/">Lifecycle methods</a></li><li><a href="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/"><code>schedule</code></a></li></ul></nav><section class="s1" id="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/" data-id="s6"><h1><code>schedule</code></h1><p>The <code>schedule</code> method allows you to queue up a series of asynchronous actions that must run in sequence during persistence.</p><pre><code><span class="function"><a href="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/">schedule</a></span><span class="punctuation">(</span>actions<span class="operator">:</span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">[</span><span class="punctuation">]</span><span class="punctuation">)</span><span class="operator">:</span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-browser/interfaces/persister/localpersister/">LocalPersister</a></span><span class="operator">></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>actions</code></th><td><code><span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">[</span><span class="punctuation">]</span></code></td><td></td></tr><tr><th class="right">returns</th><td><code><span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-browser/interfaces/persister/localpersister/">LocalPersister</a></span><span class="operator">></span></code></td><td><p></p><p>A reference to the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object.</p><p></p></td></tr></table></div><p>For example, a database <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> may need to ensure that multiple asynchronous tasks to check and update the database schema are completed before data is written to it. Therefore it&#x27;s most likely you will be using this method inside your <code>setPersisted</code> implementation.</p><p>Call this method to add a single asynchronous action, or a sequence of them in one call. This will also start to run the first task in the queue (which once complete will then run the next, and so on), and so this method itself is also asynchronous and returns a promise of the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a>.</p><section class="s2"><h2>Example</h2><p>This example creates a custom <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object against a newly-created <a href="/api/store/interfaces/store/store/"><code>Store</code></a> and then sequences two tasks in order to update its data on a hypothetical remote system.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>
1+
<nav><ul><li><a href="/">TinyBase</a></li><li><a href="/api/">API</a></li><li><a href="/api/persister-browser/"><code>persister-browser</code></a></li><li><a href="/api/persister-browser/interfaces/">Interfaces</a></li><li><a href="/api/persister-browser/interfaces/persister/localpersister/"><code>LocalPersister</code></a></li><li><a href="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/">Lifecycle methods</a></li><li><a href="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/"><code>schedule</code></a></li></ul></nav><section class="s1" id="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/" data-id="s6"><h1><code>schedule</code></h1><p>The <code>schedule</code> method allows you to queue up a series of asynchronous actions that must run in sequence during persistence.</p><pre><code><span class="function"><a href="/api/persister-browser/interfaces/persister/localpersister/methods/lifecycle/schedule/">schedule</a></span><span class="punctuation">(</span>actions<span class="operator">:</span> <span class="punctuation">(</span><span class="punctuation">(</span><span class="punctuation">)</span> <span class="operator">=></span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">)</span><span class="punctuation">[</span><span class="punctuation">]</span><span class="punctuation">)</span><span class="operator">:</span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-browser/interfaces/persister/localpersister/">LocalPersister</a></span><span class="operator">></span></code></pre><div class="table"><table><tr><th></th><th>Type</th><th>Description</th></tr><tr><th><code>actions</code></th><td><code><span class="punctuation">(</span><span class="punctuation">(</span><span class="punctuation">)</span> <span class="operator">=></span> <span class="builtin">Promise</span><span class="operator">&lt;</span><span class="builtin">any</span><span class="operator">></span><span class="punctuation">)</span><span class="punctuation">[</span><span class="punctuation">]</span></code></td><td><p>One or many functions which will be scheduled, and which can be asynchronous.</p></td></tr><tr><th class="right">returns</th><td><code><span class="builtin">Promise</span><span class="operator">&lt;</span><span class="type"><a href="/api/persister-browser/interfaces/persister/localpersister/">LocalPersister</a></span><span class="operator">></span></code></td><td><p></p><p>A reference to the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object.</p><p></p></td></tr></table></div><p>For example, a database <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> may need to ensure that multiple asynchronous tasks to check and update the database schema are completed before data is written to it. Therefore it&#x27;s most likely you will be using this method inside your <code>setPersisted</code> implementation.</p><p>Call this method to add a single asynchronous action, or a sequence of them in one call. This will also start to run the first task in the queue (which once complete will then run the next, and so on), and so this method itself is also asynchronous and returns a promise of the <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a>.</p><section class="s2"><h2>Example</h2><p>This example creates a custom <a href="/api/persisters/interfaces/persister/persister/"><code>Persister</code></a> object against a newly-created <a href="/api/store/interfaces/store/store/"><code>Store</code></a> and then sequences two tasks in order to update its data on a hypothetical remote system.</p><pre><code><span class="keyword">import</span> <span class="punctuation">{</span>
22
checkRemoteSystemIsReady<span class="punctuation">,</span>
33
getDataFromRemoteSystem<span class="punctuation">,</span>
44
sendDataToRemoteSystem<span class="punctuation">,</span>

0 commit comments

Comments
 (0)