UNPKG

delphirtl

Version:
88 lines (86 loc) 9.66 kB
<!DOCTYPE html><html class="default" lang="en"><head><meta charset="utf-8"/><link rel="canonical" href="https://chuacw.github.io/delphirtl/html/"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>delphirtl</title><meta name="description" content="Documentation for delphirtl"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/icons.js" id="tsd-icons-script"></script><script async src="assets/search.js" id="tsd-search-script"></script><script async src="assets/navigation.js" id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base="."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">delphirtl</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><h1>delphirtl</h1></div><div class="tsd-panel tsd-typography"><a id="md:delphi-rtl" class="tsd-anchor"></a><h1 class="tsd-anchor-link">Delphi RTL<a href="#md:delphi-rtl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h1><p>These libraries provide a set of functionality that makes it easy to use known Delphi functions with TypeScript and Javascript.</p> <a id="md:installation" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Installation<a href="#md:installation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>npm install delphirtl</p> <a id="md:modules" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Modules<a href="#md:modules" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><ul> <li>arrayutils</li> <li>BaseJsonRpcServer</li> <li>collections</li> <li>dateutils</li> <li>logutils</li> <li>messaging / Messaging</li> <li>performanceutils</li> <li>sysutils</li> <li>reflectutils</li> <li>rtl</li> <li>threadutils</li> </ul> <a id="md:comments" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Comments<a href="#md:comments" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>The current configuration allows importing with the following mechanism:</p> <pre><code><span class="hl-0">import</span><span class="hl-1"> { </span><span class="hl-2">ParamStr</span><span class="hl-1"> } </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-3">&quot;delphirtl/rtl&quot;</span><span class="hl-1">; </span><span class="hl-4">// import the method/type from the namespace rtl which was exported from delphirtl </span><br/><span class="hl-0">import</span><span class="hl-1"> { </span><span class="hl-2">ExtractFileName</span><span class="hl-1"> } </span><span class="hl-0">from</span><span class="hl-1"> </span><span class="hl-3">&quot;delphirtl/sysutils&quot;</span><span class="hl-1">; </span><span class="hl-4">// import ExtractFileName from sysutils </span> </code><button>Copy</button></pre> <table> <thead> <tr> <th>Version</th> <th>Date</th> <th>Notes</th> </tr> </thead> <tbody> <tr> <td>1.0.51</td> <td>12 Jun 2022</td> <td>Added ability to import subpackages.</td> </tr> <tr> <td>1.0.55</td> <td>12 Jun 2022</td> <td>Added arrayutils.</td> </tr> <tr> <td>1.1.0</td> <td>11 Jul 2022</td> <td>Added Messaging and example</td> </tr> <tr> <td>1.1.1</td> <td>11 Jul 2022</td> <td>Fixed Messaging and example to use better names</td> </tr> <tr> <td>1.1.2</td> <td>12 Jul 2022</td> <td>added subscribeToWrappedMessage, sendWrappedMessage, unsubscribeWrappedMessage and more unit tests</td> </tr> <tr> <td>1.1.8</td> <td>2 Oct 2024</td> <td>Added threadutils, reflectutils and hasMessageField, hasFieldOfType in sysutils, fixed exports in index.ts</td> </tr> <tr> <td>1.1.13-16</td> <td>6 Oct 2024</td> <td>Added List&lt;T&gt; to collections</td> </tr> <tr> <td>1.1.17</td> <td>12 Oct 2024</td> <td>Added various add* functionality to Date</td> </tr> <tr> <td>1.1.18</td> <td>13 Oct 2024</td> <td>Added isArbitraryObject</td> </tr> <tr> <td>1.1.19-20</td> <td>19 Oct 2024</td> <td>Added haveNoDuplicates to ArrayUtils</td> </tr> </tbody> </table> <a id="md:documentation" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Documentation<a href="#md:documentation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>For further documentation, see the</p> <ul> <li><a href="https://chuacw.github.io/delphirtl/md/globals.html" target="_blank" class="external">docs directory</a> on GitHub.</li> <li><a href="https://chuacw.github.io/delphirtl/html/index.html" target="_blank" class="external">HTML documents</a>.</li> </ul> <a id="md:examples" class="tsd-anchor"></a><h2 class="tsd-anchor-link">Examples<a href="#md:examples" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="assets/icons.svg#icon-anchor"></use></svg></a></h2><p>There's an <a href="https://github.com/chuacw/delphirtl/tree/main/examples" target="_blank" class="external">examples</a> directory showing how to use this library.</p> </div></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-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"><span class="settings-label">Member Visibility</span><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-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></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-accordion tsd-page-navigation"><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>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#md:delphi-rtl"><span>Delphi RTL</span></a><ul><li><a href="#md:installation"><span>Installation</span></a></li><li><a href="#md:modules"><span>Modules</span></a></li><li><a href="#md:comments"><span>Comments</span></a></li><li><a href="#md:documentation"><span>Documentation</span></a></li><li><a href="#md:examples"><span>Examples</span></a></li></ul></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="assets/icons.svg#icon-1"></use></svg><span>delphirtl</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base="."><li>Loading...</li></ul></nav></div></div></div><footer></footer><div class="overlay"></div></body></html>