1 line
6.9 KiB
JavaScript
1 line
6.9 KiB
JavaScript
import{_ as e,c as t,o as a,N as o}from"./chunks/framework.0799945b.js";const b=JSON.parse('{"title":"Module: util/proxies","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/modules/util/proxies.md","lastUpdated":null}'),r={name:"api/modules/util/proxies.md"},d=o('<h1 id="module-util-proxies" tabindex="-1">Module: util/proxies <a class="header-anchor" href="#module-util-proxies" aria-label="Permalink to "Module: util/proxies""></a></h1><h2 id="type-aliases" tabindex="-1">Type Aliases <a class="header-anchor" href="#type-aliases" aria-label="Permalink to "Type Aliases""></a></h2><h3 id="proxied" tabindex="-1">Proxied <a class="header-anchor" href="#proxied" aria-label="Permalink to "Proxied""></a></h3><p>Ƭ <strong>Proxied</strong><<code>T</code>>: <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a><<code>T</code>> extends <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a><<code>PropertyKey</code>, <code>unknown</code>> ? <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a><<code>T</code>> extends <a href="./../game/persistence#persistent"><code>Persistent</code></a><infer S> ? <a href="./../game/persistence#nonpersistent-1"><code>NonPersistent</code></a><<code>S</code>> : <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a><<code>T</code>> extends <a href="./../lib/break_eternity#default"><code>default</code></a> ? <code>T</code> : { [K in keyof T]: Proxied<T[K]> } & { <code>[ProxyState]</code>: <code>T</code> } : <code>T</code></p><h4 id="type-parameters" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters" aria-label="Permalink to "Type parameters""></a></h4><table><thead><tr><th style="text-align:left;">Name</th></tr></thead><tbody><tr><td style="text-align:left;"><code>T</code></td></tr></tbody></table><h4 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/util/proxies.ts#L19" target="_blank" rel="noreferrer">profectus/src/util/proxies.ts:19</a></p><hr><h3 id="proxiedwithstate" tabindex="-1">ProxiedWithState <a class="header-anchor" href="#proxiedwithstate" aria-label="Permalink to "ProxiedWithState""></a></h3><p>Ƭ <strong>ProxiedWithState</strong><<code>T</code>>: <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a><<code>T</code>> extends <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a><<code>PropertyKey</code>, <code>unknown</code>> ? <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a><<code>T</code>> extends <a href="./../lib/break_eternity#default"><code>default</code></a> ? <code>T</code> : { [K in keyof T]: ProxiedWithState<T[K]> } & { <code>[ProxyPath]</code>: <code>string</code>[] ; <code>[ProxyState]</code>: <code>T</code> } : <code>T</code></p><h4 id="type-parameters-1" tabindex="-1">Type parameters <a class="header-anchor" href="#type-parameters-1" aria-label="Permalink to "Type parameters""></a></h4><table><thead><tr><th style="text-align:left;">Name</th></tr></thead><tbody><tr><td style="text-align:left;"><code>T</code></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 "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/util/proxies.ts#L8" target="_blank" rel="noreferrer">profectus/src/util/proxies.ts:8</a></p><h2 id="variables" tabindex="-1">Variables <a class="header-anchor" href="#variables" aria-label="Permalink to "Variables""></a></h2><h3 id="proxypath" tabindex="-1">ProxyPath <a class="header-anchor" href="#proxypath" aria-label="Permalink to "ProxyPath""></a></h3><p>• <code>Const</code> <strong>ProxyPath</strong>: typeof <a href="./proxies#proxypath"><code>ProxyPath</code></a></p><h4 id="defined-in-2" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-2" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/util/proxies.ts#L6" target="_blank" rel="noreferrer">profectus/src/util/proxies.ts:6</a></p><hr><h3 id="proxystate" tabindex="-1">ProxyState <a class="header-anchor" href="#proxystate" aria-label="Permalink to "ProxyState""></a></h3><p>• <code>Const</code> <strong>ProxyState</strong>: typeof <a href="./proxies#proxystate"><code>ProxyState</code></a></p><h4 id="defined-in-3" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-3" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/util/proxies.ts#L5" target="_blank" rel="noreferrer">profectus/src/util/proxies.ts:5</a></p><h2 id="functions" tabindex="-1">Functions <a class="header-anchor" href="#functions" aria-label="Permalink to "Functions""></a></h2><h3 id="createlazyproxy" tabindex="-1">createLazyProxy <a class="header-anchor" href="#createlazyproxy" aria-label="Permalink to "createLazyProxy""></a></h3><p>▸ <strong>createLazyProxy</strong><<code>T</code>, <code>S</code>>(<code>objectFunc</code>, <code>baseObject?</code>): <code>T</code></p><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>objectFunc</code></td><td style="text-align:left;">(<code>this</code>: <code>S</code>, <code>baseObject</code>: <code>S</code>) => <code>T</code> & <code>S</code></td></tr><tr><td style="text-align:left;"><code>baseObject</code></td><td style="text-align:left;"><code>S</code></td></tr></tbody></table><h4 id="defined-in-4" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in-4" aria-label="Permalink to "Defined in""></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/425e85a/src/util/proxies.ts#L33" target="_blank" rel="noreferrer">profectus/src/util/proxies.ts:33</a></p>',31),l=[d];function i(n,c,s,h,p,u){return a(),t("div",null,l)}const y=e(r,[["render",i]]);export{b as __pageData,y as default};
|