File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ unnecessary for most users. There are still a few niche reasons why users may
348348still prefer to use this library.
349349
350350* This library provides several helper functions which cannot easy be
351- implemented for native enums. Of these, ` Enum.isType() ` will likely be the
351+ implemented for native enums. Of these, [ ` Enum.isType() ` ] ( #enumistypeenum-value ) will likely be the
352352 most useful.
353353* Defining a native string enum involves a bit of repetition, as each value must
354354 be written twice:
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export namespace Enum {
4646
4747 export function isType <
4848 T extends { [ _ : string ] : any }
49- > ( e : T , value : string ) : value is Enum < T > {
49+ > ( e : T , value : any ) : value is Enum < T > {
5050 return values ( e ) . indexOf ( value ) !== - 1 ;
5151 }
5252}
You can’t perform that action at this time.
0 commit comments