Skip to content

Commit

Permalink
Release 0.2.1
Browse files Browse the repository at this point in the history
matejchalk committed Aug 6, 2023
1 parent 7ca9a11 commit 0813b02
Showing 28 changed files with 106 additions and 106 deletions.
8 changes: 4 additions & 4 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>better-enums - v0.2.0</title><meta name="description" content="Documentation for better-enums"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><link rel="stylesheet" href="assets/my-theme.css"/><link rel="stylesheet" href="assets/custom.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="search-script"></script></head><body><script>console.log(`Loaded ${location.href}`)</script><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>better-enums - v0.2.1</title><meta name="description" content="Documentation for better-enums"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><link rel="stylesheet" href="assets/my-theme.css"/><link rel="stylesheet" href="assets/custom.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="search-script"></script></head><body><script>console.log(`Loaded ${location.href}`)</script><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</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"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></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">better-enums - v0.2.0</a>
<li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">better-enums - v0.2.1</a>
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
@@ -24,7 +24,7 @@ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</op
<div class="container container-main">
<div class="col-content">
<div class="tsd-page-title">
<h2>better-enums - v0.2.0</h2></div>
<h2>better-enums - v0.2.1</h2></div>
<div class="tsd-panel tsd-typography"><a id="md:better-enums" class="tsd-anchor"></a><h1><a href="#md:better-enums">better-enums</a></h1><p><a href="https://badge.fury.io/js/better-enums"><img src="https://img.shields.io/npm/v/better-enums.svg" alt="npm version"></a>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
<a href="https://github.com/matejchalk/better-enums/actions/workflows/ci.yml?query=branch%3Amain"><img src="https://github.com/matejchalk/better-enums/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
@@ -172,7 +172,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon
<li><a href="#md:contributing"><span>Contributing</span></a></li></ul></li></ul></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"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg>
<div>better-<wbr/>enums -<wbr/> v0.2.0</div></a>
<div>better-<wbr/>enums -<wbr/> v0.2.1</div></a>
<ul class="tsd-small-nested-navigation">
<li><a href="interfaces/IEnum.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg>
<div>IEnum
20 changes: 10 additions & 10 deletions docs/interfaces/IEnum.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IEnum | better-enums - v0.2.0</title><meta name="description" content="Documentation for better-enums"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/my-theme.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="search-script"></script></head><body><script>console.log(`Loaded ${location.href}`)</script><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>IEnum | better-enums - v0.2.1</title><meta name="description" content="Documentation for better-enums"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/my-theme.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="search-script"></script></head><body><script>console.log(`Loaded ${location.href}`)</script><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</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"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></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">better-enums - v0.2.0</a>
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">better-enums - v0.2.1</a>
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
@@ -74,7 +74,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L22">src/types.ts:22</a></li></ul></aside></li>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L22">src/types.ts:22</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="IEnum-1"><span class="tsd-kind-call-signature">IEnum</span><span class="tsd-signature-symbol">&lt;</span>const <span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">obj</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/LabeledEnum.html" class="tsd-signature-type tsd-kind-type-alias">LabeledEnum</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">T</span><span class="tsd-signature-symbol">&gt;</span><a href="#IEnum-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates a labeled enum from an object.</p>
@@ -102,7 +102,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L38">src/types.ts:38</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L38">src/types.ts:38</a></li></ul></aside></li></ul></section>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -155,7 +155,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L53">src/types.ts:53</a></li></ul></aside></li>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L53">src/types.ts:53</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="extend.extend-2"><span class="tsd-kind-call-signature">extend</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TEnum</span><span class="tsd-signature-symbol">, </span>const <span class="tsd-signature-type tsd-kind-type-parameter">TExtra</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">srcEnum</span>, <span class="tsd-kind-parameter">extraObj</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/_internal_.LabeledEnumExtended.html" class="tsd-signature-type tsd-kind-type-alias">LabeledEnumExtended</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TEnum</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TExtra</span><span class="tsd-signature-symbol">&gt;</span><a href="#extend.extend-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates a labeled enum by adding keys and values to another enum.</p>
@@ -193,7 +193,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L71">src/types.ts:71</a></li></ul></aside></li></ul></section>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L71">src/types.ts:71</a></li></ul></aside></li></ul></section>
<section class="tsd-panel tsd-member"><a id="exclude" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>exclude</span><a href="#exclude" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3>
<ul class="tsd-signatures">
@@ -234,7 +234,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L89">src/types.ts:89</a></li></ul></aside></li>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L89">src/types.ts:89</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="exclude.exclude-2"><span class="tsd-kind-call-signature">exclude</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TEnum</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TValue</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">srcEnum</span>, <span class="tsd-kind-parameter">values</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/_internal_.LabeledEnumExcludedByValues.html" class="tsd-signature-type tsd-kind-type-alias">LabeledEnumExcludedByValues</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TEnum</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TValue</span><span class="tsd-signature-symbol">&gt;</span><a href="#exclude.exclude-2" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates a labeled enum by removing values from another enum.</p>
@@ -272,7 +272,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L107">src/types.ts:107</a></li></ul></aside></li>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L107">src/types.ts:107</a></li></ul></aside></li>
<li class="tsd-signature tsd-anchor-link" id="exclude.exclude-3"><span class="tsd-kind-call-signature">exclude</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TEnum</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TValue</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">srcEnum</span>, <span class="tsd-kind-parameter">values</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/_internal_.SimpleEnumExcluded.html" class="tsd-signature-type tsd-kind-type-alias">SimpleEnumExcluded</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type tsd-kind-type-parameter">TEnum</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type tsd-kind-type-parameter">TValue</span><span class="tsd-signature-symbol">&gt;</span><a href="#exclude.exclude-3" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Creates a simple enum by removing values from another enum.</p>
@@ -310,7 +310,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
</code><button>Copy</button></pre>
</div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/471f4ef/src/types.ts#L125">src/types.ts:125</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/matejchalk/better-enums/blob/7ca9a11/src/types.ts#L125">src/types.ts:125</a></li></ul></aside></li></ul></section></section></div>
<div class="col-sidebar">
<div class="page-menu">
<details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
@@ -321,7 +321,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon
<li><a href="#exclude" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>exclude</span></a></li></ul></div></details></div>
<div class="site-menu">
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg>
<div>better-<wbr/>enums -<wbr/> v0.2.0</div></a>
<div>better-<wbr/>enums -<wbr/> v0.2.1</div></a>
<ul class="tsd-small-nested-navigation">
<li><a href="IEnum.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-256"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-interface)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.51 16V15.016H11.298V8.224H9.51V7.24H14.19V8.224H12.402V15.016H14.19V16H9.51Z" fill="var(--color-text)"></path></g></svg>
<div>IEnum
Loading

0 comments on commit 0813b02

Please sign in to comment.