profectus-docs/assets/api_game_persistence_functions_isPersistent.md.Be6A8lG7.js

1 line
1.9 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 t,c as a,a0 as s,o as r}from"./chunks/framework.P9qPzDnn.js";const h=JSON.parse('{"title":"Function: isPersistent()","description":"","frontmatter":{"editLink":false},"headers":[],"relativePath":"api/game/persistence/functions/isPersistent.md","filePath":"api/game/persistence/functions/isPersistent.md","lastUpdated":null}'),n={name:"api/game/persistence/functions/isPersistent.md"};function i(o,e,c,l,d,p){return r(),a("div",null,e[0]||(e[0]=[s('<p><a href="./../../../">Profectus</a> / <a href="./../">game/persistence</a> / isPersistent</p><h1 id="function-ispersistent" tabindex="-1">Function: isPersistent() <a class="header-anchor" href="#function-ispersistent" aria-label="Permalink to &quot;Function: isPersistent()&quot;"></a></h1><blockquote><p><strong>isPersistent</strong>(<code>value</code>): <code>value is Persistent&lt;State&gt;</code></p></blockquote><p>Type guard for whether an arbitrary value is a persistent ref</p><h2 id="parameters" tabindex="-1">Parameters <a class="header-anchor" href="#parameters" aria-label="Permalink to &quot;Parameters&quot;"></a></h2><h3 id="value" tabindex="-1">value <a class="header-anchor" href="#value" aria-label="Permalink to &quot;value&quot;"></a></h3><p><code>unknown</code></p><p>The value that may or may not be a persistent ref</p><h2 id="returns" tabindex="-1">Returns <a class="header-anchor" href="#returns" aria-label="Permalink to &quot;Returns&quot;"></a></h2><p><code>value is Persistent&lt;State&gt;</code></p><h2 id="defined-in" tabindex="-1">Defined in <a class="header-anchor" href="#defined-in" aria-label="Permalink to &quot;Defined in&quot;"></a></h2><p><a href="https://code.incremental.social/profectus/Profectus/src/branch/main/src/game/persistence.ts#L195" target="_blank" rel="noreferrer">profectus/src/game/persistence.ts:195</a></p>',12)]))}const f=t(n,[["render",i]]);export{h as __pageData,f as default};