1
- <!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.1.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 ">
1
+ <!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 ">
2
2
< div class ="tsd-toolbar-contents container ">
3
3
< div class ="table-cell " id ="tsd-search " data-base =".. ">
4
4
< 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 >
5
5
< div class ="field ">
6
6
< div id ="tsd-toolbar-links "> </ div > </ div >
7
7
< ul class ="results ">
8
8
< li class ="state loading "> Preparing search index...</ li >
9
- < li class ="state failure "> The search index is not available</ li > </ ul > < a href ="../index.html " class ="title "> better-enums - v0.1.1 </ a >
9
+ < li class ="state failure "> The search index is not available</ li > </ ul > < a href ="../index.html " class ="title "> better-enums - v0.2.0 </ a >
10
10
< div class ="tsd-navigation settings ">
11
11
< details class ="tsd-index-accordion "> < summary class ="tsd-accordion-summary ">
12
12
< 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
74
74
</ code > < button > Copy</ button > </ pre >
75
75
</ div > < aside class ="tsd-sources ">
76
76
< ul >
77
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L22 "> src/types.ts:22</ a > </ li > </ ul > </ aside > </ li >
77
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L22 "> src/types.ts:22</ a > </ li > </ ul > </ aside > </ li >
78
78
< li class ="tsd-signature tsd-anchor-link " id ="IEnum-1 "> < span class ="tsd-kind-call-signature "> IEnum</ span > < span class ="tsd-signature-symbol "> <</ span > const < span class ="tsd-signature-type tsd-kind-type-parameter "> T</ span > < span class ="tsd-signature-symbol "> ></ 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 "> <</ span > < span class ="tsd-signature-type tsd-kind-type-parameter "> T</ span > < span class ="tsd-signature-symbol "> ></ 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 >
79
79
< li class ="tsd-description ">
80
80
< 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
102
102
</ code > < button > Copy</ button > </ pre >
103
103
</ div > < aside class ="tsd-sources ">
104
104
< ul >
105
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L38 "> src/types.ts:38</ a > </ li > </ ul > </ aside > </ li > </ ul > </ section >
105
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L38 "> src/types.ts:38</ a > </ li > </ ul > </ aside > </ li > </ ul > </ section >
106
106
< section class ="tsd-panel-group tsd-index-group ">
107
107
< section class ="tsd-panel tsd-index-panel ">
108
108
< 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
155
155
</ code > < button > Copy</ button > </ pre >
156
156
</ div > < aside class ="tsd-sources ">
157
157
< ul >
158
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L53 "> src/types.ts:53</ a > </ li > </ ul > </ aside > </ li >
158
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L53 "> src/types.ts:53</ a > </ li > </ ul > </ aside > </ li >
159
159
< li class ="tsd-signature tsd-anchor-link " id ="extend.extend-2 "> < span class ="tsd-kind-call-signature "> extend</ span > < span class ="tsd-signature-symbol "> <</ 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 "> ></ 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 "> <</ 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 "> ></ 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 >
160
160
< li class ="tsd-description ">
161
161
< 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
193
193
</ code > < button > Copy</ button > </ pre >
194
194
</ div > < aside class ="tsd-sources ">
195
195
< ul >
196
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L71 "> src/types.ts:71</ a > </ li > </ ul > </ aside > </ li > </ ul > </ section >
196
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L71 "> src/types.ts:71</ a > </ li > </ ul > </ aside > </ li > </ ul > </ section >
197
197
< section class ="tsd-panel tsd-member "> < a id ="exclude " class ="tsd-anchor "> </ a >
198
198
< 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 >
199
199
< ul class ="tsd-signatures ">
@@ -234,7 +234,7 @@ <h4>Example</h4><pre><code class="language-ts"><span class="hl-5">const</span><s
234
234
</ code > < button > Copy</ button > </ pre >
235
235
</ div > < aside class ="tsd-sources ">
236
236
< ul >
237
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L89 "> src/types.ts:89</ a > </ li > </ ul > </ aside > </ li >
237
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L89 "> src/types.ts:89</ a > </ li > </ ul > </ aside > </ li >
238
238
< li class ="tsd-signature tsd-anchor-link " id ="exclude.exclude-2 "> < span class ="tsd-kind-call-signature "> exclude</ span > < span class ="tsd-signature-symbol "> <</ 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 "> ></ 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 "> <</ 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 "> ></ 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 >
239
239
< li class ="tsd-description ">
240
240
< 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
272
272
</ code > < button > Copy</ button > </ pre >
273
273
</ div > < aside class ="tsd-sources ">
274
274
< ul >
275
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L107 "> src/types.ts:107</ a > </ li > </ ul > </ aside > </ li >
275
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L107 "> src/types.ts:107</ a > </ li > </ ul > </ aside > </ li >
276
276
< li class ="tsd-signature tsd-anchor-link " id ="exclude.exclude-3 "> < span class ="tsd-kind-call-signature "> exclude</ span > < span class ="tsd-signature-symbol "> <</ 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 "> ></ 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 "> <</ 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 "> ></ 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 >
277
277
< li class ="tsd-description ">
278
278
< 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
310
310
</ code > < button > Copy</ button > </ pre >
311
311
</ div > < aside class ="tsd-sources ">
312
312
< ul >
313
- < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/76c65f3 /src/types.ts#L125 "> src/types.ts:125</ a > </ li > </ ul > </ aside > </ li > </ ul > </ section > </ section > </ div >
313
+ < li > Defined in < a href ="https://github.com/matejchalk/better-enums/blob/809ca04 /src/types.ts#L125 "> src/types.ts:125</ a > </ li > </ ul > </ aside > </ li > </ ul > </ section > </ section > </ div >
314
314
< div class ="col-sidebar ">
315
315
< div class ="page-menu ">
316
316
< 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
321
321
< 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 >
322
322
< div class ="site-menu ">
323
323
< 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 >
324
- < div > better-< wbr /> enums -< wbr /> v0.1.1 </ div > </ a >
324
+ < div > better-< wbr /> enums -< wbr /> v0.2.0 </ div > </ a >
325
325
< ul class ="tsd-small-nested-navigation ">
326
326
< 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 >
327
327
< div > IEnum
0 commit comments