profectus-docs/assets/api_modules_features_repeatable.md.3d374383.js

1 line
9.5 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as e,c as a,o as t,N as o}from"./chunks/framework.0799945b.js";const h=JSON.parse('{"title":"Module: features/repeatable","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/features/repeatable.md","lastUpdated":null}'),r={name:"api/modules/features/repeatable.md"},l=o('<h1 id="module-features-repeatable" tabindex="-1">Module: features/repeatable <a class="header-anchor" href="#module-features-repeatable" aria-label="Permalink to &quot;Module: features/repeatable&quot;"></a></h1><h2 id="interfaces" tabindex="-1">Interfaces <a class="header-anchor" href="#interfaces" aria-label="Permalink to &quot;Interfaces&quot;"></a></h2><ul><li><a href="../../interfaces/features/repeatable.BaseRepeatable">BaseRepeatable</a></li><li><a href="../../interfaces/features/repeatable.RepeatableOptions">RepeatableOptions</a></li></ul><h2 id="type-aliases" tabindex="-1">Type Aliases <a class="header-anchor" href="#type-aliases" aria-label="Permalink to &quot;Type Aliases&quot;"></a></h2><h3 id="genericrepeatable" tabindex="-1">GenericRepeatable <a class="header-anchor" href="#genericrepeatable" aria-label="Permalink to &quot;GenericRepeatable&quot;"></a></h3><p>Ƭ <strong>GenericRepeatable</strong>: <a href="./feature#replace"><code>Replace</code></a>&lt;<a href="./repeatable#repeatable"><code>Repeatable</code></a>&lt;<a href="../../interfaces/features/repeatable.RepeatableOptions"><code>RepeatableOptions</code></a>&gt;, { <code>limit</code>: <a href="./../util/computed#processedcomputable"><code>ProcessedComputable</code></a>&lt;<a href="./../util/bignum#decimalsource"><code>DecimalSource</code></a>&gt; ; <code>visibility</code>: <a href="./../util/computed#processedcomputable"><code>ProcessedComputable</code></a>&lt;<a href="../../enums/features/feature.Visibility"><code>Visibility</code></a> | <code>boolean</code>&gt; }&gt;</p><p>A type that matches any valid <a href="./repeatable#repeatable">Repeatable</a> object.</p><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/repeatable.tsx#L119" target="_blank" rel="noreferrer">profectus/src/features/repeatable.tsx:119</a></p><hr><h3 id="repeatable" tabindex="-1">Repeatable <a class="header-anchor" href="#repeatable" aria-label="Permalink to &quot;Repeatable&quot;"></a></h3><p>Ƭ <strong>Repeatable</strong>&lt;<code>T</code>&gt;: <a href="./feature#replace"><code>Replace</code></a>&lt;<code>T</code> &amp; <a href="../../interfaces/features/repeatable.BaseRepeatable"><code>BaseRepeatable</code></a>, { <code>classes</code>: <a href="./../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;classes&quot;</code>]&gt; ; <code>display</code>: <code>Ref</code>&lt;<a href="./feature#coercablecomponent"><code>CoercableComponent</code></a>&gt; ; <code>limit</code>: <a href="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a>&lt;<code>T</code>[<code>&quot;limit&quot;</code>], <a href="../../classes/lib/break_eternity.default"><code>default</code></a>&gt; ; <code>mark</code>: <a href="./../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;mark&quot;</code>]&gt; ; <code>maximize</code>: <a href="./../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;maximize&quot;</code>]&gt; ; <code>requirements</code>: <a href="./../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;requirements&quot;</code>]&gt; ; <code>small</code>: <a href="./../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;small&quot;</code>]&gt; ; <code>style</code>: <a href="./../util/computed#getcomputabletype"><code>GetComputableType</code></a>&lt;<code>T</code>[<code>&quot;style&quot;</code>]&gt; ; <code>visibility</code>: <a href="./../util/computed#getcomputabletypewithdefault"><code>GetComputableTypeWithDefault</code></a>&lt;<code>T</code>[<code>&quot;visibility&quot;</code>], <a href="./../../enums/features/feature.Visibility#visible"><code>Visible</code></a>&gt; }&gt;</p><p>An object that represents a feature with multiple &quot;levels&quot; with scaling requirements.</p><h4 id="type-parameters" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters" aria-label="Permalink to &quot;Type parameters&quot;"></a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>T</code></td><td style="text-align:left;">extends <a href="../../interfaces/features/repeatable.RepeatableOptions"><code>RepeatableOptions</code></a></td></tr></tbody></table><h4 id="defined-in-1" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-1" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/repeatable.tsx#L103" target="_blank" rel="noreferrer">profectus/src/features/repeatable.tsx:103</a></p><hr><h3 id="repeatabledisplay" tabindex="-1">RepeatableDisplay <a class="header-anchor" href="#repeatabledisplay" aria-label="Permalink to &quot;RepeatableDisplay&quot;"></a></h3><p>Ƭ <strong>RepeatableDisplay</strong>: <a href="./feature#coercablecomponent"><code>CoercableComponent</code></a> | { <code>description?</code>: <a href="./feature#coercablecomponent"><code>CoercableComponent</code></a> ; <code>effectDisplay?</code>: <a href="./feature#coercablecomponent"><code>CoercableComponent</code></a> ; <code>showAmount?</code>: <code>boolean</code> ; <code>title?</code>: <a href="./feature#coercablecomponent"><code>CoercableComponent</code></a> }</p><p>A type that can be used to customize the <a href="./repeatable#repeatable">Repeatable</a> display.</p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/repeatable.tsx#L38" target="_blank" rel="noreferrer">profectus/src/features/repeatable.tsx:38</a></p><h2 id="variables" tabindex="-1">Variables <a class="header-anchor" href="#variables" aria-label="Permalink to &quot;Variables&quot;"></a></h2><h3 id="repeatabletype" tabindex="-1">RepeatableType <a class="header-anchor" href="#repeatabletype" aria-label="Permalink to &quot;RepeatableType&quot;"></a></h3><p>• <code>Const</code> <strong>RepeatableType</strong>: typeof <a href="./repeatable#repeatabletype"><code>RepeatableType</code></a></p><p>A symbol used to identify <a href="./repeatable#repeatable">Repeatable</a> features.</p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/repeatable.tsx#L35" target="_blank" rel="noreferrer">profectus/src/features/repeatable.tsx:35</a></p><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-label="Permalink to &quot;Functions&quot;"></a></h2><h3 id="createrepeatable" tabindex="-1">createRepeatable <a class="header-anchor" href="#createrepeatable" aria-label="Permalink to &quot;createRepeatable&quot;"></a></h3><p>▸ <strong>createRepeatable</strong>&lt;<code>T</code>&gt;(<code>optionsFunc</code>): <a href="./repeatable#repeatable"><code>Repeatable</code></a>&lt;<code>T</code>&gt;</p><p>Lazily creates a repeatable with the given options.</p><h4 id="type-parameters-1" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters-1" aria-label="Permalink to &quot;Type parameters&quot;"></a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th></tr></thead><tbody><tr><td style="text-align:left;"><code>T</code></td><td style="text-align:left;">extends <a href="../../interfaces/features/repeatable.RepeatableOptions"><code>RepeatableOptions</code></a></td></tr></tbody></table><h4 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h4><table><thead><tr><th style="text-align:left;">Name</th><th style="text-align:left;">Type</th><th style="text-align:left;">Description</th></tr></thead><tbody><tr><td style="text-align:left;"><code>optionsFunc</code></td><td style="text-align:left;"><a href="./feature#optionsfunc"><code>OptionsFunc</code></a>&lt;<code>T</code>, <a href="../../interfaces/features/repeatable.BaseRepeatable"><code>BaseRepeatable</code></a>, <a href="./repeatable#genericrepeatable"><code>GenericRepeatable</code></a>&gt;</td><td style="text-align:left;">Repeatable options.</td></tr></tbody></table><h4 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h4><p><a href="./repeatable#repeatable"><code>Repeatable</code></a>&lt;<code>T</code>&gt;</p><h4 id="defined-in-4" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-4" aria-label="Permalink to &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/70cda5f/src/features/repeatable.tsx#L131" target="_blank" rel="noreferrer">profectus/src/features/repeatable.tsx:131</a></p>',41),c=[l];function d(i,s,p,n,b,u){return t(),a("div",null,c)}const m=e(r,[["render",d]]);export{h as __pageData,m as default};