profectus-docs/assets/api_modules_util_proxies.md.92fedcf7.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

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 &quot;Module: util/proxies&quot;"></a></h1><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="proxied" tabindex="-1">Proxied <a class="header-anchor" href="#proxied" aria-label="Permalink to &quot;Proxied&quot;"></a></h3><p>Ƭ <strong>Proxied</strong>&lt;<code>T</code>&gt;: <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a>&lt;<code>T</code>&gt; extends <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a>&lt;<code>PropertyKey</code>, <code>unknown</code>&gt; ? <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a>&lt;<code>T</code>&gt; extends <a href="./../game/persistence#persistent"><code>Persistent</code></a>&lt;infer S&gt; ? <a href="./../game/persistence#nonpersistent-1"><code>NonPersistent</code></a>&lt;<code>S</code>&gt; : <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a>&lt;<code>T</code>&gt; extends <a href="./../lib/break_eternity#default"><code>default</code></a> ? <code>T</code> : { [K in keyof T]: Proxied&lt;T[K]&gt; } &amp; { <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 &quot;Type parameters&quot;"></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 &quot;Defined in&quot;"></a></h4><p><a href="https://github.com/profectus-engine/Profectus/blob/5c11524/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 &quot;ProxiedWithState&quot;"></a></h3><p>Ƭ <strong>ProxiedWithState</strong>&lt;<code>T</code>&gt;: <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a>&lt;<code>T</code>&gt; extends <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type" target="_blank" rel="noreferrer"><code>Record</code></a>&lt;<code>PropertyKey</code>, <code>unknown</code>&gt; ? <a href="https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype" target="_blank" rel="noreferrer"><code>NonNullable</code></a>&lt;<code>T</code>&gt; extends <a href="./../lib/break_eternity#default"><code>default</code></a> ? <code>T</code> : { [K in keyof T]: ProxiedWithState&lt;T[K]&gt; } &amp; { <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 &quot;Type parameters&quot;"></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" ar