Skip to content

Commit

Permalink
docs: update documentation [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
aegir[bot] committed Sep 13, 2024
1 parent 0181371 commit 598b21e
Show file tree
Hide file tree
Showing 77 changed files with 173 additions and 173 deletions.
4 changes: 2 additions & 2 deletions classes/ipfs_unixfs.InvalidTypeError.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions classes/ipfs_unixfs.UnixFS.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.BadPathError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.InvalidParametersError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.NoPropError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.NoResolverError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.NotFoundError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.NotUnixFSError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.OverReadError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_exporter.UnderReadError.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_importer.index.InvalidChunkSizeError.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions classes/ipfs_unixfs_importer.index.InvalidContentError.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion functions/ipfs_unixfs_exporter.exporter.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<p>Returns a Promise which resolves to a <a href="../types/ipfs_unixfs_exporter.UnixFSEntry.html" class="tsd-kind-type-alias">UnixFSEntry</a>.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">path</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><a href="https://multiformats.github.io/js-multiformats/classes/cid.CID.html" class="tsd-signature-type external" target="_blank">CID</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">, </span><a href="https://multiformats.github.io/js-multiformats/types/link_interface.Version.html" class="tsd-signature-type external" target="_blank">Version</a><span class="tsd-signature-symbol">&gt;</span></span></li><li><span><span class="tsd-kind-parameter">blockstore</span>: <a href="../types/ipfs_unixfs_exporter.ReadableStorage.html" class="tsd-signature-type tsd-kind-type-alias">ReadableStorage</a></span></li><li><span><span class="tsd-kind-parameter">options</span>: <a href="../interfaces/ipfs_unixfs_exporter.ExporterOptions.html" class="tsd-signature-type tsd-kind-interface">ExporterOptions</a><span class="tsd-signature-symbol"> = {}</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise" class="tsd-signature-type external" target="_blank">Promise</a><span class="tsd-signature-symbol">&lt;</span><a href="../types/ipfs_unixfs_exporter.UnixFSEntry.html" class="tsd-signature-type tsd-kind-type-alias">UnixFSEntry</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"><h4>Example</h4><pre><code class="language-typescript"><span class="hl-14">import</span><span class="hl-1"> { </span><span class="hl-4">exporter</span><span class="hl-1"> } </span><span class="hl-14">from</span><span class="hl-1"> </span><span class="hl-5">&#39;ipfs-unixfs-exporter&#39;</span><br/><span class="hl-14">import</span><span class="hl-1"> { </span><span class="hl-4">CID</span><span class="hl-1"> } </span><span class="hl-14">from</span><span class="hl-1"> </span><span class="hl-5">&#39;multiformats/cid&#39;</span><br/><br/><span class="hl-0">const</span><span class="hl-1"> </span><span class="hl-2">cid</span><span class="hl-1"> = </span><span class="hl-2">CID</span><span class="hl-1">.</span><span class="hl-3">parse</span><span class="hl-1">(</span><span class="hl-5">&#39;QmFoo&#39;</span><span class="hl-1">)</span><br/><br/><span class="hl-0">const</span><span class="hl-1"> </span><span class="hl-2">entry</span><span class="hl-1"> = </span><span class="hl-14">await</span><span class="hl-1"> </span><span class="hl-3">exporter</span><span class="hl-1">(</span><span class="hl-4">cid</span><span class="hl-1">, </span><span class="hl-4">blockstore</span><span class="hl-1">, {</span><br/><span class="hl-1"> </span><span class="hl-4">signal:</span><span class="hl-1"> </span><span class="hl-4">AbortSignal</span><span class="hl-1">.</span><span class="hl-3">timeout</span><span class="hl-1">(</span><span class="hl-6">50000</span><span class="hl-1">)</span><br/><span class="hl-1">})</span><br/><br/><span class="hl-14">if</span><span class="hl-1"> (</span><span class="hl-4">entry</span><span class="hl-1">.</span><span class="hl-4">type</span><span class="hl-1"> === </span><span class="hl-5">&#39;file&#39;</span><span class="hl-1">) {</span><br/><span class="hl-1"> </span><span class="hl-14">for</span><span class="hl-1"> </span><span class="hl-14">await</span><span class="hl-1"> (</span><span class="hl-0">const</span><span class="hl-1"> </span><span class="hl-2">chunk</span><span class="hl-1"> </span><span class="hl-0">of</span><span class="hl-1"> </span><span class="hl-4">entry</span><span class="hl-1">.</span><span class="hl-3">content</span><span class="hl-1">()) {</span><br/><span class="hl-1"> </span><span class="hl-7">// chunk is a Uint8Array</span><br/><span class="hl-1"> }</span><br/><span class="hl-1">}</span>
</code><button>Copy</button></pre>
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ipfs/js-ipfs-unixfs/blob/41dde042120164e6597bcead152120ebcfc6423f/packages/ipfs-unixfs-exporter/src/index.ts#L442">packages/ipfs-unixfs-exporter/src/index.ts:442</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>UnixFS</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/ipfs/js-ipfs-unixfs/blob/6663007b46fb18e31157bce7bba4bfcf7b0ef5b5/packages/ipfs-unixfs-exporter/src/index.ts#L442">packages/ipfs-unixfs-exporter/src/index.ts:442</a></li></ul></aside></li></ul></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>UnixFS</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
Loading

0 comments on commit 598b21e

Please sign in to comment.